pydio.exc - Base exceptions

Base exception classes for PyDio.

exception pydio.exc.Base(**kwargs)

Bases: Exception, abc.ABC

Common base class for all PyDio exceptions.

You can use this class to catch all exceptions that this library may raise.

abstract property message_template

Specify message template.

This must be defined in subclass and provides template to render exception message. This template can use self to access exception data, for example:

class MyException(Base):
    message_template = 'Failed: foo={self.foo!r}'
property params

Dictionary containing all keyword args given in constructor.

In subclass, this can be used as source of data when adding another properties.

exception pydio.exc.InjectorError(**kwargs)

Bases: pydio.exc.Base

Base class for exceptions that can be raised by pydio.base.IInjector instances.

exception pydio.exc.ProviderError(**kwargs)

Bases: pydio.exc.Base

Base class for exceptions that can be raised by pydio.base.IUnboundFactoryRegistry instances.