fix error naming again
This commit is contained in:
parent
9cef571576
commit
81e9c28a7a
4
utils.js
4
utils.js
@ -1,14 +1,14 @@
|
|||||||
class ResponseError extends Error {
|
class ResponseError extends Error {
|
||||||
constructor(message) {
|
constructor(message) {
|
||||||
super(message);
|
super(message);
|
||||||
this.name = "ValidationError";
|
this.name = "ResponseError";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class NetworkError extends Error {
|
class NetworkError extends Error {
|
||||||
constructor(message) {
|
constructor(message) {
|
||||||
super(message);
|
super(message);
|
||||||
this.name = "ValidationError";
|
this.name = "NetworkError";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user