mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 13:20:31 +00:00
refactor: sale estimates to nestjs
This commit is contained in:
14
src/errors/service-error.ts
Normal file
14
src/errors/service-error.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
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