ResultMonadException class

Exception type for Result Monad specific exceptions (such as getting the success value when the Result contained is a failure.

Implemented types

Constructors

ResultMonadException(String message)
Standard constructor with message to propagate
ResultMonadException.accessFailureOnSuccess()
Generates a standard exception for when a user accesse the error value on a monad wrapping a success
ResultMonadException.accessSuccessOnFailure()
Generates a standard exception for when a user accessed the success value on a monad wrapping a failure

Properties

hashCode int
The hash code for this object.
no setterinherited
message String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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