InvalidStateError
Hierarchy
StateError
↳ InvalidStateError
Index
Constructors
Properties
Methods
Constructors
constructor
+ new InvalidStateError(typeName
: TypeName, currentState
: State, expectedStates
: State): InvalidStateError
Overrides StateError.constructor
Parameters:
Name | Type |
---|---|
typeName | TypeName |
currentState | State |
expectedStates | State |
Returns: InvalidStateError
Properties
Optional
code
• code? : number
Inherited from StateError.code
Overrides StateError.code
message
• message: string
Inherited from StateError.message
Overrides void
name
• name: string
Inherited from StateError.name
Overrides void
Optional
stack
• stack? : string
Inherited from StateError.stack
Overrides void
Methods
fillErrorProps
▸ fillErrorProps(props
: ErrorProps): ErrorProps
Inherited from StateError.fillErrorProps
Overrides StateError.fillErrorProps
Parameters:
Name | Type |
---|---|
props | ErrorProps |
Returns: ErrorProps