html-streamer
Version:
streaming templating
23 lines (19 loc) • 386 B
JavaScript
class DirError extends Error {
constructor (msg, num) {
super(msg)
this.num = num
}
get name () {
return 'DirectoryError'
}
}
class FileError extends Error {
constructor (msg, num) {
super(msg)
this.num = num
}
get name () {
return 'FileError'
}
}
module.exports = { FileError, DirError }