mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
14 lines
265 B
TypeScript
14 lines
265 B
TypeScript
|
|
|
|
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;
|
|
}
|
|
} |