lib/toxerror.js
function ToxError(type, code, message) {
    this.name = "ToxError";
    this.type = ( type || "ToxError" );
    this.code = ( code || 0 ); // 0 = unsuccessful
    this.message = ( message || (this.type + ": " + this.code) );
    Error.captureStackTrace(this, ToxError);
}
function ToxError(type, code, message) {
    this.name = "ToxError";
    this.type = ( type || "ToxError" );
    this.code = ( code || 0 ); // 0 = unsuccessful
    this.message = ( message || (this.type + ": " + this.code) );
    Error.captureStackTrace(this, ToxError);
}
function ToxError ( type , code , message ) { this . name = "ToxError" ; this . type = ( type || "ToxError" ) ; this . code = ( code || 0 ) ; // 0 = unsuccessful this . message = ( message || ( this . type + ": " + this . code ) ) ; Error . captureStackTrace ( this , ToxError ) ; }
Creates a ToxError instance
@class
@param {String} type of error
@param {Number} code of type
@param {String} message of error
Creates a ToxError instance