fix error naming again
This commit is contained in:
parent
e33e5ed67c
commit
f4a74b9ba5
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