ValueObjectFailure<T> class
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
-
- @freezed
Constructors
- ValueObjectFailure.emailAddressMustNotBeNull({required T failedValue})
-
constfactory
- ValueObjectFailure.invalidEmailAddress({required T failedValue})
-
constfactory
- ValueObjectFailure.invalidPhoneNumber({required T failedValue})
-
constfactory
Properties
-
copyWith
→ $ValueObjectFailureCopyWith<
T, ValueObjectFailure< T> > -
no setterinherited
- failedValue → T
-
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 invalidEmailAddress(InvalidEmailAddress< T> value), required TResult invalidPhoneNumber(InvalidPhoneNumber<T> value), required TResult emailAddressMustNotBeNull(EmailAddressMustNotBeNull<T> value)}) → TResult -
inherited
-
maybeMap<
TResult extends Object?> ({TResult invalidEmailAddress(InvalidEmailAddress< T> value)?, TResult invalidPhoneNumber(InvalidPhoneNumber<T> value)?, TResult emailAddressMustNotBeNull(EmailAddressMustNotBeNull<T> value)?, required TResult orElse()}) → TResult -
inherited
-
maybeWhen<
TResult extends Object?> ({TResult invalidEmailAddress(T failedValue)?, TResult invalidPhoneNumber(T failedValue)?, TResult emailAddressMustNotBeNull(T failedValue)?, 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 invalidEmailAddress(T failedValue), required TResult invalidPhoneNumber(T failedValue), required TResult emailAddressMustNotBeNull(T failedValue)}) → TResult -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited