ExceptionOptions class

This class is part of exception handling mechanism implemented in RestApiClient

Constructors

ExceptionOptions({bool showInternalServerErrors = true, bool showNetworkErrors = true, bool showValidationErrors = true, Map<String, List<String>> resolveValidationErrorsMap(dynamic response)?})

Properties

hashCode int
The hash code for this object.
no setterinherited
resolveValidationErrorsMap Map<String, List<String>> Function(dynamic response)?
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