mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 13:50:31 +00:00
refactor: wip to nestjs
This commit is contained in:
@@ -1,14 +1 @@
|
||||
import { HttpStatus } from '@nestjs/common';
|
||||
|
||||
export class ServiceError extends Error {
|
||||
constructor(
|
||||
public message: string,
|
||||
private status: HttpStatus = HttpStatus.INTERNAL_SERVER_ERROR,
|
||||
) {
|
||||
super(message);
|
||||
}
|
||||
|
||||
getStatus(): HttpStatus {
|
||||
return this.status;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user