1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-03 08:35:29 +02:00
joplin/ReactNativeClient/lib/JoplinError.js
2018-01-02 20:17:14 +01:00

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;