ExceptionOptions class
This class is part of exception handling mechanism implemented in RestApiClient
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
resolveValidationErrorsMap
→ Map<
String, List< Function(dynamic response)?String> > -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showInternalServerErrors ↔ bool
-
Toggle the value if you don't want to
insert a new exception in exceptions stream
from RestApiClient instance i the case of
HttpStatus 500 in the response
getter/setter pair
- showNetworkErrors ↔ bool
-
Toggle the value if you don't want to
insert a new exception in exceptions stream
from RestApiClient instance i the case of
any network related errors
getter/setter pair
- showValidationErrors ↔ bool
-
Toggle the value if you don't want to
insert a new exception in exceptions stream
from RestApiClient instance i the case of
HttpStatus 400 in the response
getter/setter pair
Methods
-
disable(
) → void - If this is called, error handling will be disabled
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reset(
) → void - This method resets this instance to a default state
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited