MpException class

MpException is a custom implementation of Exception that can be used to catch any errors of this service

Implemented types
Annotations
  • @freezed

Constructors

MpException.preference({required String message})
MpException.preference exception type
factory
MpException.unknown({required StackTrace stackTrace, Object? exception})
MpException.unknown exception type
factory

Properties

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 preference(_PreferenceError value), required TResult unknown(_UnknownError value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? preference(_PreferenceError value)?, TResult? unknown(_UnknownError value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult preference(_PreferenceError value)?, TResult unknown(_UnknownError value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult preference(String message)?, TResult unknown(StackTrace stackTrace, Object? 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 preference(String message), required TResult unknown(StackTrace stackTrace, Object? exception)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? preference(String message)?, TResult? unknown(StackTrace stackTrace, Object? exception)?}) → TResult?
inherited

Operators

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