exceptions library

This package assists in catching and handling exceptions that occur, producing a single result that contains either an error or a value.

Classes

ErrorMessage
Failure<T>
Result<T>
A class representing the result of an operation that can either succeed or fail.
Success<T>

Typedefs

ExceptionHandler = ErrorMessage? Function(Exception exception, StackTrace stackTrace)
A typedef for a function that handles exceptions and their stack trace. It may return an ErrorMessage or null.

Exceptions / Errors

ResultException