HttpErrors class

Annotations
  • @freezed

Constructors

HttpErrors.badGateWay({String? exception})
const
factory
HttpErrors.internalServiceError({String? exception})
const
factory
HttpErrors.removedResourceFound({String? exception})
const
factory
HttpErrors.resourceForbidden({String? exception})
const
factory
HttpErrors.resourceNotFound({String? exception})
const
factory
HttpErrors.resourceRemoved({String? exception})
const
factory

Properties

copyWith → $HttpErrorsCopyWith<HttpErrors>
no setterinherited
exception String?
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

map<TResult extends Object?>({required TResult badGateWay(_BadGateWay value), required TResult internalServiceError(_InternalServiceError value), required TResult removedResourceFound(_RemovedResourceFound value), required TResult resourceForbidden(_ResourceForbidden value), required TResult resourceNotFound(_ResourceNotFound value), required TResult resourceRemoved(_ResourceRemoved value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult badGateWay(_BadGateWay value)?, TResult internalServiceError(_InternalServiceError value)?, TResult removedResourceFound(_RemovedResourceFound value)?, TResult resourceForbidden(_ResourceForbidden value)?, TResult resourceNotFound(_ResourceNotFound value)?, TResult resourceRemoved(_ResourceRemoved value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult badGateWay(_BadGateWay value)?, TResult internalServiceError(_InternalServiceError value)?, TResult removedResourceFound(_RemovedResourceFound value)?, TResult resourceForbidden(_ResourceForbidden value)?, TResult resourceNotFound(_ResourceNotFound value)?, TResult resourceRemoved(_ResourceRemoved value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult badGateWay(String? exception)?, TResult internalServiceError(String? exception)?, TResult removedResourceFound(String? exception)?, TResult resourceForbidden(String? exception)?, TResult resourceNotFound(String? exception)?, TResult resourceRemoved(String? exception)?, 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 badGateWay(String? exception), required TResult internalServiceError(String? exception), required TResult removedResourceFound(String? exception), required TResult resourceForbidden(String? exception), required TResult resourceNotFound(String? exception), required TResult resourceRemoved(String? exception)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult badGateWay(String? exception)?, TResult internalServiceError(String? exception)?, TResult removedResourceFound(String? exception)?, TResult resourceForbidden(String? exception)?, TResult resourceNotFound(String? exception)?, TResult resourceRemoved(String? exception)?}) → TResult?
inherited

Operators

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