exception RockyApiError#

Bases: Exception

Provides the Exception class for an error generated in the API layer.

Overview#

with_traceback

Exception.with_traceback(tb) –

__delattr__

Implement delattr(self, name).

__dir__

Default dir() implementation.

__eq__

Return self==value.

__format__

Default object formatter.

__ge__

Return self>=value.

__getattribute__

Return getattr(self, name).

__gt__

Return self>value.

__hash__

Return hash(self).

__le__

Return self<=value.

__lt__

Return self

__ne__

Return self!=value.

__reduce__

Helper for pickle.

__reduce_ex__

Helper for pickle.

__repr__

Return repr(self).

__setattr__

Implement setattr(self, name, value).

__setstate__

__sizeof__

Size of object in memory, in bytes.

__str__

Return str(self).

__subclasshook__

Abstract classes can override this to customize issubclass().

Import detail#

from ansys.rocky.core.exceptions import RockyApiError

Method detail#

RockyApiError.__delattr__()#

Implement delattr(self, name).

RockyApiError.__dir__()#

Default dir() implementation.

RockyApiError.__eq__()#

Return self==value.

RockyApiError.__format__()#

Default object formatter.

RockyApiError.__ge__()#

Return self>=value.

RockyApiError.__getattribute__()#

Return getattr(self, name).

RockyApiError.__gt__()#

Return self>value.

RockyApiError.__hash__()#

Return hash(self).

RockyApiError.__le__()#

Return self<=value.

RockyApiError.__lt__()#

Return self

RockyApiError.__ne__()#

Return self!=value.

RockyApiError.__reduce__()#

Helper for pickle.

RockyApiError.__reduce_ex__()#

Helper for pickle.

RockyApiError.__repr__()#

Return repr(self).

RockyApiError.__setattr__()#

Implement setattr(self, name, value).

RockyApiError.__setstate__()#
RockyApiError.__sizeof__()#

Size of object in memory, in bytes.

RockyApiError.__str__()#

Return str(self).

RockyApiError.__subclasshook__()#

Abstract classes can override this to customize issubclass().

This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).

RockyApiError.with_traceback()#

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.