-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
23 lines (21 loc) · 857 Bytes
/
index.js
File metadata and controls
23 lines (21 loc) · 857 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { AppError as BaseAppError } from "./src/app-error.js";
import ErrorFactory from "./src/helpers/factories.js";
export { createAppErrorBuilder } from "./src/app-error.builder.js";
export { errorHandlerPlugin } from "./src/plugins/vue.js";
export class AppError extends BaseAppError {
static network = ErrorFactory.network;
static validation = ErrorFactory.validation;
static mapping = ErrorFactory.mapping;
static permission = ErrorFactory.permission;
static component = ErrorFactory.component;
static environment = ErrorFactory.environment;
static system = ErrorFactory.system;
static unknown = ErrorFactory.unknown;
static feature = ErrorFactory.feature;
static isAppError = ErrorFactory.isAppError;
static Levels = ErrorFactory.Levels;
static Types = ErrorFactory.Types;
constructor(options) {
super(options);
}
}