Moonshard
# Class: InternalServerError
# Hierarchy
-
↳ InternalServerError
# Index
# Constructors
# Properties
# Methods
# Constructors
# constructor
+ new InternalServerError(message
: string, error
: string, code
: HttpStatus): InternalServerError
Overrides HttpError.constructor
# Parameters:
Name | Type | Default value |
---|---|---|
message | string | - |
error | string | "Internal Server Error" |
code | HttpStatus | HttpStatus.INTERNAL_SERVER_ERROR |
Returns: InternalServerError
# Properties
# code
• Readonly
code: any
# error
• Readonly
error: any
Inherited from HttpError.error
# message
• message: string
Inherited from HttpError.message
# name
• name: string
# stack
• Optional
stack: undefined | string
Inherited from HttpError.stack
# Methods
# getResponse
▸ getResponse(__namedParameters
: { request: any }): IHttpError & IHttpErrorStatics
Inherited from HttpError.getResponse
# Parameters:
Name | Type | Default value |
---|---|---|
__namedParameters | { request: any } | {} |
Returns: IHttpError & IHttpErrorStatics