OperationError Class

Represents an error that occurred during an operation.

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

Initialize a new instance of the OperationError class.

Constructor

OperationError(exception: Exception)

Parameters

Name Description
exception
Required

The exception associated with the error.

Attributes

exception

Get the exception associated with the error.

Returns

Type Description

The exception associated with the error.

message

Get the message associated with the error.

Returns

Type Description
str

The error message from the exception.