aboutsummaryrefslogtreecommitdiff
path: root/Timeline/ClientApp/src/app/user/internal-user-service/errors.ts
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2019-04-13 13:03:18 +0800
committercrupest <crupest@outlook.com>2019-04-13 13:03:18 +0800
commitfac5006e7eaf7f7bc23e92a2b3059d4f1b37fa07 (patch)
tree39cf181a18a3dc443dbab5669a04d0a23cdefd00 /Timeline/ClientApp/src/app/user/internal-user-service/errors.ts
parent8c5e7069d2651fb6fae641dfe482d7a0910b3fd1 (diff)
downloadtimeline-fac5006e7eaf7f7bc23e92a2b3059d4f1b37fa07.tar.gz
timeline-fac5006e7eaf7f7bc23e92a2b3059d4f1b37fa07.tar.bz2
timeline-fac5006e7eaf7f7bc23e92a2b3059d4f1b37fa07.zip
Init separate.
Diffstat (limited to 'Timeline/ClientApp/src/app/user/internal-user-service/errors.ts')
-rw-r--r--Timeline/ClientApp/src/app/user/internal-user-service/errors.ts29
1 files changed, 0 insertions, 29 deletions
diff --git a/Timeline/ClientApp/src/app/user/internal-user-service/errors.ts b/Timeline/ClientApp/src/app/user/internal-user-service/errors.ts
deleted file mode 100644
index 3358a9d9..00000000
--- a/Timeline/ClientApp/src/app/user/internal-user-service/errors.ts
+++ /dev/null
@@ -1,29 +0,0 @@
-export class BadNetworkError extends Error {
- constructor() {
- super('Network is bad.');
- }
-}
-
-export class AlreadyLoginError extends Error {
- constructor() {
- super('Internal logical error. There is already a token saved. Please call validateUserLoginState first.');
- }
-}
-
-export class BadCredentialsError extends Error {
- constructor() {
- super('Username or password is wrong.');
- }
-}
-
-export class UnknownError extends Error {
- constructor(public internalError?: any) {
- super('Sorry, unknown error occured!');
- }
-}
-
-export class ServerInternalError extends Error {
- constructor(message?: string) {
- super('Wrong server response. ' + message);
- }
-}