diffusion
Version:
Diffusion JavaScript client
35 lines (34 loc) • 1.07 kB
JavaScript
;
/**
* @module Services
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.ErrorReportImpl = void 0;
var require_non_null_1 = require("./../util/require-non-null");
/**
* Implementation of {@link ErrorReport}
*/
var ErrorReportImpl = /** @class */ (function () {
/**
* Create an error report
*
* @param message the error message
* @param line the line at which the problem was found
* @param column the column at which the problem was found
*/
function ErrorReportImpl(message, line, column) {
this.message = require_non_null_1.requireNonNull(message, 'message');
this.line = line || 0;
this.column = column || 0;
}
/**
* Convert object to string
*
* @return a string representation of the object
*/
ErrorReportImpl.prototype.toString = function () {
return "ErrorReport [" + this.message + " at [" + this.line + ":" + this.column + "]]";
};
return ErrorReportImpl;
}());
exports.ErrorReportImpl = ErrorReportImpl;