@studyportals/sp-holonet-interface
Version:
Contains various types (DTOs) found in HoloNet's interface.
26 lines • 941 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const sp_r2d2_interface_1 = require("@studyportals/sp-r2d2-interface");
/**
* The result of a report retrieval operation that failed due to
* lack of available data.
*/
class ReportNotFoundResult extends sp_r2d2_interface_1.FailedResult {
constructor() {
super("Could not find reports associated with the given subject, considering the specified parameters.");
this.__report_not_found_result__ = true;
}
/**
* Returns an object that can be stringifyed, resulting in the correct
* serialization of the current instance.
*
* @see JSON.stringify
*/
toJSON() {
const obj = super.toJSON();
obj.__report_not_found_result__ = true;
return obj;
}
}
exports.ReportNotFoundResult = ReportNotFoundResult;
//# sourceMappingURL=report-not-found-result.class.js.map