BadContextError class

Inheritance

Constructors

BadContextError(String reason, String key, [StackTrace? stackTrace])
BadContextError.missingKey(String key)
factory

Properties

context Map<String, dynamic>
The context around the exception. Use this for scoped-values and states that may have contributed to the exception and might be useful in reproduction.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
key String
final
message String
The exception message, this should not use interpolation. Store exception context in context, appropriately.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stackTrace StackTrace?
The exception stack trace
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toResponse([int statusCode = HttpStatus.internalServerError]) ErrorResponse
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited