DroneException class

Implemented types
Implementers
Annotations
  • @freezed

Constructors

DroneException.forbiddenException({@Default('Forbidden 403. The requested resource is forbidden.') String message})
const
factory
DroneException.internalException({@Default('Internal 500. An internal server error occurred.') String message})
const
factory
DroneException.invalidRequestBodyException({@Default('Invalid 400. You missed some fields.') String message})
const
factory
DroneException.jsonDeserializationException({@Default('Exception on deserializing json') String message})
const
factory
DroneException.notFound({@Default('Not Found 404. The requested resource could not be found.') String message})
const
factory
DroneException.requestException({@Default('Http request Exception') String message})
const
factory
DroneException.streamEOFException({@Default('End of file') String message})
const
factory
DroneException.unauthorizedException({@Default('Unauthorized') String message})
const
factory

Properties

copyWith → $DroneExceptionCopyWith<DroneException>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
message String
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

map<TResult extends Object?>({required TResult notFound(NotFound value), required TResult requestException(RequestException value), required TResult forbiddenException(ForbiddenException value), required TResult internalException(InternalException value), required TResult invalidRequestBodyException(InvalidRequestBodyException value), required TResult unauthorizedException(UnauthorizedException value), required TResult jsonDeserializationException(JsonDeserializationException value), required TResult streamEOFException(StreamEOFException value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? notFound(NotFound value)?, TResult? requestException(RequestException value)?, TResult? forbiddenException(ForbiddenException value)?, TResult? internalException(InternalException value)?, TResult? invalidRequestBodyException(InvalidRequestBodyException value)?, TResult? unauthorizedException(UnauthorizedException value)?, TResult? jsonDeserializationException(JsonDeserializationException value)?, TResult? streamEOFException(StreamEOFException value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult notFound(NotFound value)?, TResult requestException(RequestException value)?, TResult forbiddenException(ForbiddenException value)?, TResult internalException(InternalException value)?, TResult invalidRequestBodyException(InvalidRequestBodyException value)?, TResult unauthorizedException(UnauthorizedException value)?, TResult jsonDeserializationException(JsonDeserializationException value)?, TResult streamEOFException(StreamEOFException value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult notFound(String message)?, TResult requestException(String message)?, TResult forbiddenException(String message)?, TResult internalException(String message)?, TResult invalidRequestBodyException(String message)?, TResult unauthorizedException(String message)?, TResult jsonDeserializationException(String message)?, TResult streamEOFException(String message)?, required TResult orElse()}) → TResult
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult notFound(String message), required TResult requestException(String message), required TResult forbiddenException(String message), required TResult internalException(String message), required TResult invalidRequestBodyException(String message), required TResult unauthorizedException(String message), required TResult jsonDeserializationException(String message), required TResult streamEOFException(String message)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? notFound(String message)?, TResult? requestException(String message)?, TResult? forbiddenException(String message)?, TResult? internalException(String message)?, TResult? invalidRequestBodyException(String message)?, TResult? unauthorizedException(String message)?, TResult? jsonDeserializationException(String message)?, TResult? streamEOFException(String message)?}) → TResult?
inherited

Operators

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