EventError
Hierarchy
- Error
- EventError
Implements
- HttpError
Index
Constructors
Properties
Accessors
Methods
- _is
- badGateway
- badRequest
- conflict
- expectationFailed
- failedDependency
- forbidden
- from
- gatewayTimeout
- gone
- internal
- internalServerError
- lengthRequired
- locked
- log
- loopDetected
- methodNotAllowed
- noResponse
- notAcceptable
- notFound
- notImplemented
- payloadTooLarge
- paymentRequired
- preconditionFailed
- preconditionRequired
- proxyAuthRequired
- rangeNotSatisfiable
- requestTimeout
- retryable
- serviceUnavailable
- teapot
- tooEarly
- tooManyRequests
- unauthorized
- unavailableForLegalReasons
- unexpectedEventType
- unprocessableEntity
- unsupportedMediaType
- uriTooLong
- validation
Constructors
publicconstructor
Parameters
optionalmessage: ErrorLike
__namedParameters: EventOptions = {}
Returns EventError
Properties
publicattributes
publicerror
publicerrorHandling
publicexpose
publicforceLevel
publicheaders
publicisEventError
publicmessage
publicoriginal
publicstatusCode
publicthrown
publicstaticerrors
publicstaticis
Type declaration
Parameters
o: unknown
Returns o is HttpError
publicstaticparse
Type declaration
Parameters
o: unknown
Returns { right: HttpError } | { left: DefinedError[] }
publicstaticschema
publicstaticvalidate
Accessors
publicisClientError
Returns boolean
publicisInformational
Returns boolean
publicisRedirection
Returns boolean
publicisServerError
Returns boolean
publicisSuccess
Returns boolean
publiclevel
Returns error | info | warning
Methods
publicstatic_is
Type parameters
- O
Parameters
e: EventError | O
Returns e is EventError
publicstaticbadGateway
Type parameters
- T: EventOptions | ExactObject<EventOptions, T>
Parameters
optionalmessage: ErrorLike
optionaloptions: T
Returns EventError
publicstaticbadRequest
Type parameters
- T: EventOptions | ExactObject<EventOptions, T>
Parameters
optionalmessage: ErrorLike
optionaloptions: T
Returns EventError
publicstaticconflict
Type parameters
- T: EventOptions | ExactObject<EventOptions, T>
Parameters
optionalmessage: ErrorLike
optionaloptions: T
Returns EventError
publicstaticexpectationFailed
Type parameters
- T: EventOptions | ExactObject<EventOptions, T>
Parameters
optionalmessage: ErrorLike
optionaloptions: T
Returns EventError
publicstaticfailedDependency
Type parameters
- T: EventOptions | ExactObject<EventOptions, T>
Parameters
optionalmessage: ErrorLike
optionaloptions: T
Returns EventError
publicstaticforbidden
Type parameters
- T: EventOptions | ExactObject<EventOptions, T>
Parameters
optionalmessage: ErrorLike
optionaloptions: T
Returns EventError
publicstaticfrom
Parameters
error: unknown
Returns EventError
publicstaticgatewayTimeout
Type parameters
- T: EventOptions | ExactObject<EventOptions, T>
Parameters
optionalmessage: ErrorLike
optionaloptions: T
Returns EventError
publicstaticgone
Type parameters
- T: EventOptions | ExactObject<EventOptions, T>
Parameters
optionalmessage: ErrorLike
optionaloptions: T
Returns EventError
publicstaticinternal
Type parameters
- T: EventOptions | ExactObject<EventOptions, T>
Parameters
optionalmessage: ErrorLike
optionaloptions: T
Returns EventError
publicstaticinternalServerError
Type parameters
- T: EventOptions | ExactObject<EventOptions, T>
Parameters
optionalmessage: ErrorLike
optionaloptions: T
Returns EventError
publicstaticlengthRequired
Type parameters
- T: EventOptions | ExactObject<EventOptions, T>
Parameters
optionalmessage: ErrorLike
optionaloptions: T
Returns EventError
publicstaticlocked
Type parameters
- T: EventOptions | ExactObject<EventOptions, T>
Parameters
optionalmessage: ErrorLike
optionaloptions: T
Returns EventError
publicstaticlog
Parameters
logger: Logger
error: unknown
mode: error | level = 'level'
Returns EventError
publicstaticloopDetected
Type parameters
- T: EventOptions | ExactObject<EventOptions, T>
Parameters
optionalmessage: ErrorLike
optionaloptions: T
Returns EventError
publicstaticmethodNotAllowed
Parameters
options: EventOptions & { allow: HTTPMethod[]; message?: ErrorLike }
Returns EventError
publicstaticnoResponse
Type parameters
- T: EventOptions | ExactObject<EventOptions, T>
Parameters
optionalmessage: ErrorLike
optionaloptions: T
Returns EventError
publicstaticnotAcceptable
Type parameters
- T: EventOptions | ExactObject<EventOptions, T>
Parameters
optionalmessage: ErrorLike
optionaloptions: T
Returns EventError
publicstaticnotFound
Type parameters
- T: EventOptions | ExactObject<EventOptions, T>
Parameters
optionalmessage: ErrorLike
optionaloptions: T
Returns EventError
publicstaticnotImplemented
Type parameters
- T: EventOptions | ExactObject<EventOptions, T>
Parameters
optionalmessage: ErrorLike
optionaloptions: T
Returns EventError
publicstaticpayloadTooLarge
Type parameters
- T: EventOptions | ExactObject<EventOptions, T>
Parameters
optionalmessage: ErrorLike
optionaloptions: T
Returns EventError
publicstaticpaymentRequired
Type parameters
- T: EventOptions | ExactObject<EventOptions, T>
Parameters
optionalmessage: ErrorLike
optionaloptions: T
Returns EventError
publicstaticpreconditionFailed
Type parameters
- T: EventOptions | ExactObject<EventOptions, T>
Parameters
optionalmessage: ErrorLike
optionaloptions: T
Returns EventError
publicstaticpreconditionRequired
Type parameters
- T: EventOptions | ExactObject<EventOptions, T>
Parameters
optionalmessage: ErrorLike
optionaloptions: T
Returns EventError
publicstaticproxyAuthRequired
Type parameters
- T: EventOptions | ExactObject<EventOptions, T>
Parameters
optionalmessage: ErrorLike
optionaloptions: T
Returns EventError
publicstaticrangeNotSatisfiable
Type parameters
- T: EventOptions | ExactObject<EventOptions, T>
Parameters
optionalmessage: ErrorLike
optionaloptions: T
Returns EventError
publicstaticrequestTimeout
Type parameters
- T: EventOptions | ExactObject<EventOptions, T>
Parameters
optionalmessage: ErrorLike
optionaloptions: T
Returns EventError
publicstaticretryable
Type parameters
- T: EventOptions | ExactObject<EventOptions, T>
Parameters
optionalmessage: ErrorLike
optionaloptions: T
Returns EventError
publicstaticserviceUnavailable
Type parameters
- T: EventOptions | ExactObject<EventOptions, T>
Parameters
optionalmessage: ErrorLike
optionaloptions: T
Returns EventError
publicstaticteapot
Type parameters
- T: EventOptions | ExactObject<EventOptions, T>
Parameters
optionalmessage: ErrorLike
optionaloptions: T
Returns EventError
publicstatictooEarly
Type parameters
- T: EventOptions | ExactObject<EventOptions, T>
Parameters
optionalmessage: ErrorLike
optionaloptions: T
Returns EventError
publicstatictooManyRequests
Type parameters
- T: EventOptions | ExactObject<EventOptions, T>
Parameters
optionalmessage: ErrorLike
optionaloptions: T
Returns EventError
publicstaticunauthorized
Type parameters
- T: EventOptions | ExactObject<EventOptions, T>
Parameters
message: ErrorLike
optionaloptions: T
Returns EventError
publicstaticunavailableForLegalReasons
Type parameters
- T: EventOptions | ExactObject<EventOptions, T>
Parameters
optionalmessage: ErrorLike
optionaloptions: T
Returns EventError
publicstaticunexpectedEventType
Type parameters
- T: EventOptions | ExactObject<EventOptions, T>
Parameters
optionalmessage: ErrorLike
optionaloptions: T
Returns EventError
publicstaticunprocessableEntity
Type parameters
- T: EventOptions | ExactObject<EventOptions, T>
Parameters
optionalmessage: ErrorLike
optionaloptions: T
Returns EventError
publicstaticunsupportedMediaType
Type parameters
- T: EventOptions | ExactObject<EventOptions, T>
Parameters
optionalmessage: ErrorLike
optionaloptions: T
Returns EventError
publicstaticuriTooLong
Type parameters
- T: EventOptions | ExactObject<EventOptions, T>
Parameters
optionalmessage: ErrorLike
optionaloptions: T
Returns EventError
publicstaticvalidation
Parameters
options: EventOptions & ({ errors?: null | ErrorObject<string, Record<string, any>, unknown>[]; location?: string } | { left?: null | ErrorObject<string, Record<string, any>, unknown>[]; location?: string }) = {}
Returns EventError