diffusion
Version:
Diffusion JavaScript client
32 lines (31 loc) • 800 B
JavaScript
;
/**
* @module Client
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.ErrorReason = void 0;
/**
* Defined reason code and message used to report error conditions.
*/
var ErrorReason = /** @class */ (function () {
/**
* Create an error reason
*
* @param id the error reason's id
* @param reason the error reason's description
*/
function ErrorReason(id, reason) {
this.id = id;
this.reason = reason;
}
/**
* Convert the error reson to a string
*
* @return a string representation of the error reason
*/
ErrorReason.prototype.toString = function () {
return this.id + ': ' + this.reason;
};
return ErrorReason;
}());
exports.ErrorReason = ErrorReason;