blocks/bla-error/bla-error.js
function ApiError(type, message, data) {
        this.name = 'ApiError';
        this.type = type;
        this.message = message;
        this.data = data;

        if (Error.captureStackTrace) {
            Error.captureStackTrace(this, this.constructor);
        }
    }
function ApiError(type, message, data) {
        this.name = 'ApiError';
        this.type = type;
        this.message = message;
        this.data = data;

        if (Error.captureStackTrace) {
            Error.captureStackTrace(this, this.constructor);
        }
    }
function ApiError ( type , message , data ) { this . name = 'ApiError' ; this . type = type ; this . message = message ; this . data = data ; if ( Error . captureStackTrace ) { Error . captureStackTrace ( this , this . constructor ) ; } }
API error.

@param {String} type Error type.
@param {String} message Human-readable description of the error.
@param {Object} data Extra data (stack trace, for example).
API error .