microsoft.opentelemetry.a365.runtime.operation_error module

Encapsulates an error from an operation.

class microsoft.opentelemetry.a365.runtime.operation_error.OperationError(exception)[source]

Bases: object

Represents an error that occurred during an operation.

This class wraps an exception and provides a consistent interface for accessing error information.

property exception: Exception

Get the exception associated with the error.

Returns:

The exception associated with the error.

Return type:

Exception

property message: str

Get the message associated with the error.

Returns:

The error message from the exception.

Return type:

str