exception PyRockyError#

Bases: Exception

Provides the generic exception for the PyRocky API.

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 PyRockyError

Method detail#

PyRockyError.__delattr__()#

Implement delattr(self, name).

PyRockyError.__dir__()#

Default dir() implementation.

PyRockyError.__eq__()#

Return self==value.

PyRockyError.__format__()#

Default object formatter.

PyRockyError.__ge__()#

Return self>=value.

PyRockyError.__getattribute__()#

Return getattr(self, name).

PyRockyError.__gt__()#

Return self>value.

PyRockyError.__hash__()#

Return hash(self).

PyRockyError.__le__()#

Return self<=value.

PyRockyError.__lt__()#

Return self

PyRockyError.__ne__()#

Return self!=value.

PyRockyError.__reduce__()#

Helper for pickle.

PyRockyError.__reduce_ex__()#

Helper for pickle.

PyRockyError.__repr__()#

Return repr(self).

PyRockyError.__setattr__()#

Implement setattr(self, name, value).

PyRockyError.__setstate__()#
PyRockyError.__sizeof__()#

Size of object in memory, in bytes.

PyRockyError.__str__()#

Return str(self).

PyRockyError.__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).

PyRockyError.with_traceback()#

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