mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
add server to monorepo.
This commit is contained in:
14
packages/server/src/exceptions/ServiceError.ts
Normal file
14
packages/server/src/exceptions/ServiceError.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
|
||||
|
||||
export default class ServiceError {
|
||||
errorType: string;
|
||||
message: string;
|
||||
payload: any;
|
||||
|
||||
constructor(errorType: string, message?: string, payload?: any) {
|
||||
this.errorType = errorType;
|
||||
this.message = message || null;
|
||||
|
||||
this.payload = payload;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user