Colibrio Result
Represents result of an operation. Can be either ColibrioResult.Success holding data of type T, or ColibrioResult.Error holding exception of type ColibrioException.
Inheritors
Types
Functions
Link copied to clipboard
Returns the encapsulated value if this ColibrioResult is ColibrioResult.Success or null if it is a ColibrioResult.Error
Link copied to clipboard
Performs the given action on the encapsulated ColibrioException exception if this instance is ColibrioResult.Error. Returns the original ColibrioResult
unchanged.
Link copied to clipboard
Performs the given action on the encapsulated data if this instance is ColibrioResult.Success. Returns the original ColibrioResult
unchanged.