src/exception/file/file-missing.exception.ts
Properties |
Methods |
code |
Type : number
|
Default value : 2002
|
http_status_code |
Default value : HttpStatus.BAD_REQUEST
|
message |
Type : string
|
Default value : "File missing"
|
code |
Type : number
|
Default value : 1
|
Inherited from
ApiException
|
Defined in
ApiException:5
|
data |
Default value : undefined
|
Inherited from
ApiException
|
Defined in
ApiException:8
|
http_status_code |
Default value : HttpStatus.INTERNAL_SERVER_ERROR
|
Inherited from
ApiException
|
Defined in
ApiException:7
|
message |
Type : string
|
Default value : 'Internal Server Error'
|
Inherited from
ApiException
|
Defined in
ApiException:6
|
toJSON |
toJSON()
|
Inherited from
ApiException
|
Defined in
ApiException:21
|
Returns :
{ code: number; message: string; data: any; } | { code: number; message: string; data?: undefined...
|
import { ApiException } from "../../module/routing/exception/api.exception";
import { HttpStatus } from "@nestjs/common";
export class FIleMissingException extends ApiException {
code = 2002;
message = "File missing";
http_status_code = HttpStatus.BAD_REQUEST;
}