Skip to content
Snippets Groups Projects
Commit e07fc4f6 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

error definition improved

parent 81bb4a08
No related branches found
No related tags found
1 merge request!34Resolve "when highligting element that doesn't exist throw an error"
......@@ -10,4 +10,6 @@ function InvalidArgumentError(message) {
this.stack = (new Error()).stack;
}
InvalidArgumentError.prototype = new Error
module.exports = InvalidArgumentError;
......@@ -10,4 +10,6 @@ function InvalidCredentialsError(message) {
this.stack = (new Error()).stack;
}
InvalidCredentialsError.prototype = new Error
module.exports = InvalidCredentialsError;
......@@ -16,4 +16,6 @@ function NetworkError(message, connectionParams) {
this.content = connectionParams.content;
}
NetworkError.prototype = new Error
module.exports = NetworkError;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment