TransportException class abstract

Implemented types

Constructors

TransportException.new({required String message, String? additionalInfo})
const
factory
TransportException.fromJson(Map<String, dynamic> json)
factory

Properties

additionalInfo String?
no setter
copyWith → _$$TransportExceptionImplCopyWith<_$TransportExceptionImpl>
Create a copy of ApiResponseException with the given fields replaced by the non-null parameter values.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
message String
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

map<TResult extends Object?>({required TResult general(ApiResponseExceptionGeneral value), required TResult sapMessage(SapHeadersException value), required TResult csrfToken(CsrfTokenException value), required TResult transport(TransportException value), required TResult noResource(NoResourceException value), required TResult unauthorized(UnauthorizedException value), required TResult timeout(TimeoutException value), required TResult materialDocument(MaterialDocumentException value), required TResult batchClassification(BatchClassificationException value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? general(ApiResponseExceptionGeneral value)?, TResult? sapMessage(SapHeadersException value)?, TResult? csrfToken(CsrfTokenException value)?, TResult? transport(TransportException value)?, TResult? noResource(NoResourceException value)?, TResult? unauthorized(UnauthorizedException value)?, TResult? timeout(TimeoutException value)?, TResult? materialDocument(MaterialDocumentException value)?, TResult? batchClassification(BatchClassificationException value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult general(ApiResponseExceptionGeneral value)?, TResult sapMessage(SapHeadersException value)?, TResult csrfToken(CsrfTokenException value)?, TResult transport(TransportException value)?, TResult noResource(NoResourceException value)?, TResult unauthorized(UnauthorizedException value)?, TResult timeout(TimeoutException value)?, TResult materialDocument(MaterialDocumentException value)?, TResult batchClassification(BatchClassificationException value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult general(int statusCode, String body, String message)?, TResult sapMessage(String message, String? additionalInfo)?, TResult csrfToken(String body, int statusCode, String message)?, TResult transport(String message, String? additionalInfo)?, TResult noResource(String message, String? additionalInfo)?, TResult unauthorized(String message, String? additionalInfo)?, TResult timeout(String message, String? additionalInfo)?, TResult materialDocument(String message)?, TResult batchClassification(String message)?, required TResult orElse()}) → TResult
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this ApiResponseException to a JSON map.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult general(int statusCode, String body, String message), required TResult sapMessage(String message, String? additionalInfo), required TResult csrfToken(String body, int statusCode, String message), required TResult transport(String message, String? additionalInfo), required TResult noResource(String message, String? additionalInfo), required TResult unauthorized(String message, String? additionalInfo), required TResult timeout(String message, String? additionalInfo), required TResult materialDocument(String message), required TResult batchClassification(String message)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? general(int statusCode, String body, String message)?, TResult? sapMessage(String message, String? additionalInfo)?, TResult? csrfToken(String body, int statusCode, String message)?, TResult? transport(String message, String? additionalInfo)?, TResult? noResource(String message, String? additionalInfo)?, TResult? unauthorized(String message, String? additionalInfo)?, TResult? timeout(String message, String? additionalInfo)?, TResult? materialDocument(String message)?, TResult? batchClassification(String message)?}) → TResult?
inherited

Operators

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