tahamajs's picture
download
raw
453 Bytes
module.exports = class OSError extends Error {
constructor(msg, fn = OSError, code = fn.name) {
super(`${code}: ${msg}`)
this.code = code
if (Error.captureStackTrace) {
Error.captureStackTrace(this, fn)
}
}
get name() {
return 'OSError'
}
static UNKNOWN_SIGNAL(msg) {
return new OSError(msg, OSError.UNKNOWN_SIGNAL)
}
static TITLE_OVERFLOW(msg) {
return new OSError(msg, OSError.TITLE_OVERFLOW)
}
}

Xet Storage Details

Size:
453 Bytes
·
Xet hash:
feff20dfea6a4558d3964dbf12f95b60a96bac2c5d248111d62af7e6423ecb93

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.