API Docs for: 1.5.0
Show:

File: src/structures/CAPIError.js

/* global define */
define(function () {
    "use strict";

    /**
     * Class describing any error which could be thrown during CAPI workflow
     *
     * @class CAPIError
     * @constructor
     * @param message {String} error message
     * @param details {Object} object literal containing any additional error properties
     */
    var CAPIError = function (message, details) {
        this.name = "CAPIError";
        this.message = message;
        this.details = details;
    };

    CAPIError.prototype = new Error();

    CAPIError.prototype.constructor = CAPIError;

    return CAPIError;

});