@ayonli/jsext
Version:
A JavaScript extension package for building strong and modern applications.
33 lines (29 loc) • 1.03 kB
JavaScript
;
var error = require('../error.js');
var error_Exception = require('../error/Exception.js');
/**
* This error indicates that the filename is too long to be resolved by the file
* system.
*
* NOTE: This error has an HTTP-compatible code of `414`.
*/
class FilenameTooLongError extends error_Exception.default {
constructor(message, options = {}) {
super(message, { ...options, name: "FilenameTooLongError", code: 414 });
}
}
error.registerErrorType(FilenameTooLongError);
/**
* This error indicates that the archive is corrupted or invalid.
*
* NOTE: This error has an HTTP-compatible code of `400`.
*/
class CorruptedArchiveError extends error_Exception.default {
constructor(message, options = {}) {
super(message, { ...options, name: "ArchiveCorruptedError", code: 400 });
}
}
error.registerErrorType(CorruptedArchiveError);
exports.CorruptedArchiveError = CorruptedArchiveError;
exports.FilenameTooLongError = FilenameTooLongError;
//# sourceMappingURL=errors.js.map