You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This should allow users to run code which throws certain error responses
The top level function should return Result<Unit> as we cannot recover any data, extensions to Result<Unit> will "recover" the Result (suppress the exception), while still wanting to use Result#getOrThrow to notify the caller of unrelated exceptions
The goal would be to somewhat replicate JDA's ErrorHandler, typical use case is sending a DM, while handling/ignoring onlyCANNOT_SEND_TO_USER and rethrowing other exceptions/error responses
The text was updated successfully, but these errors were encountered:
This should allow users to run code which throws certain error responses
The top level function should return
Result<Unit>
as we cannot recover any data, extensions toResult<Unit>
will "recover" theResult
(suppress the exception), while still wanting to useResult#getOrThrow
to notify the caller of unrelated exceptionsThe goal would be to somewhat replicate JDA's
ErrorHandler
, typical use case is sending a DM, while handling/ignoring onlyCANNOT_SEND_TO_USER
and rethrowing other exceptions/error responsesThe text was updated successfully, but these errors were encountered: