ValueObjectFailure<T> class Null safety

ValueObjectFailure represents generic errors from our value objects. In the event a value requires it's own specialized failures, we will create a new Failure class specialized for that use case.

Implementers
Annotations

Constructors

ValueObjectFailure.emailAddressMustNotBeNull({required T failedValue})
const
factory
ValueObjectFailure.invalidEmailAddress({required T failedValue})
const
factory
ValueObjectFailure.invalidPhoneNumber({required T failedValue})
const
factory

Properties

copyWith → $ValueObjectFailureCopyWith<T, ValueObjectFailure<T>>
@JsonKey(ignore: true)read-onlyinherited
failedValue → T
read-onlyinherited
hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

map<TResult extends Object?>({required TResult invalidEmailAddress(InvalidEmailAddress<T> value), required TResult invalidPhoneNumber(InvalidPhoneNumber<T> value), required TResult emailAddressMustNotBeNull(EmailAddressMustNotBeNull<T> value)}) → TResult
maybeMap<TResult extends Object?>({TResult invalidEmailAddress(InvalidEmailAddress<T> value)?, TResult invalidPhoneNumber(InvalidPhoneNumber<T> value)?, TResult emailAddressMustNotBeNull(EmailAddressMustNotBeNull<T> value)?, required TResult orElse()}) → TResult
maybeWhen<TResult extends Object?>({TResult invalidEmailAddress(T failedValue)?, TResult invalidPhoneNumber(T failedValue)?, TResult emailAddressMustNotBeNull(T failedValue)?, required TResult orElse()}) → TResult
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult invalidEmailAddress(T failedValue), required TResult invalidPhoneNumber(T failedValue), required TResult emailAddressMustNotBeNull(T failedValue)}) → TResult

Operators

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