Skip to content

TransactionalStatusExtensions.ConvertToUserException(TransactionalStatus, string, Exception?)

ConvertToUserException(TransactionalStatus, string, Exception?)

staticextension
View source
public static OrleansTransactionException ConvertToUserException(this TransactionalStatus status, string transactionId, Exception? exception)
Creates the user-facing transaction exception represented by a failure status.

Parameters

statusTransactionalStatus
The transaction failure status.
transactionIdstring
The transaction identifier.
exceptionException?
The exception which contributed to the failure, if available.

Returns

An exception describing the transaction outcome.