exception documentation
An error that represents "failed" and "canceled" operation results.
Example
import nexusrpc # Indicate operation failed raise nexusrpc.OperationError( "Processing failed due to invalid data", state=nexusrpc.OperationErrorState.FAILED ) # Indicate operation was canceled raise nexusrpc.OperationError( "Operation was canceled by user request", state=nexusrpc.OperationErrorState.CANCELED )
Parameters | |
message | A descriptive message for the error. This will become the
message in the resulting Nexus Failure object. |
state |
Method | __init__ |
Undocumented |
Property | state |
The state of the operation. |
Instance Variable | _state |
Undocumented |