Callable
- __call<N, C>(cause: C, name: N, message?: string | function): Incident<any, N, C>
- __call<N>(name: N, message?: string | function): Incident<any, N, undefined>
- __call<D, N, C>(cause: C, name: N, data: D, message?: string | function): Incident<D, N, C>
- __call<D, N>(name: N, data: D, message?: string | function): Incident<D, N, undefined>
- __call<D, N, C>(error: Error & object): Incident<D, N, C>
- __call(error: Error): Incident<any, string, undefined>
-
Type parameters
Parameters
-
cause: C
-
name: N
-
Optional message: string | function
Returns Incident<any, N, C>
-
Type parameters
Parameters
-
name: N
-
Optional message: string | function
Returns Incident<any, N, undefined>
-
Type parameters
-
D: any
-
N: string
-
C: Error
Parameters
-
cause: C
-
name: N
-
data: D
-
Optional message: string | function
Returns Incident<D, N, C>
-
Type parameters
Parameters
-
name: N
-
data: D
-
Optional message: string | function
Returns Incident<D, N, undefined>
-
Type parameters
-
D: any
-
N: string
-
C: Error | undefined
Parameters
Returns Incident<D, N, C>
-
Parameters
Returns Incident<any, string, undefined>
Constructors
constructor
- new StaticIncident<N, C>(cause: C, name: N, message?: string | function): Incident<any, N, C>
- new StaticIncident<N>(name: N, message?: string | function): Incident<any, N, undefined>
- new StaticIncident<D, N, C>(cause: C, name: N, data: D, message?: string | function): Incident<D, N, C>
- new StaticIncident<D, N>(name: N, data: D, message?: string | function): Incident<D, N, undefined>
-
Type parameters
Parameters
-
cause: C
-
name: N
-
Optional message: string | function
Returns Incident<any, N, C>
-
Type parameters
Parameters
-
name: N
-
Optional message: string | function
Returns Incident<any, N, undefined>
-
Type parameters
-
D: any
-
N: string
-
C: Error
Parameters
-
cause: C
-
name: N
-
data: D
-
Optional message: string | function
Returns Incident<D, N, C>
-
Type parameters
Parameters
-
name: N
-
data: D
-
Optional message: string | function
Returns Incident<D, N, undefined>