mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-03 08:35:29 +02:00
14 lines
186 B
JavaScript
14 lines
186 B
JavaScript
class JoplinError extends Error {
|
|
|
|
constructor(message, code = null) {
|
|
super(message);
|
|
this.code_ = code;
|
|
}
|
|
|
|
get code() {
|
|
return this.code_;
|
|
}
|
|
|
|
}
|
|
|
|
module.exports = JoplinError; |