micropy.exceptions

Micropy Exceptions.

Exceptions

StubError([message, stub])

Exception for any errors raised by stubs.

StubNotFound([stub_name])

Raised when a stub cannot be found.

StubValidationError(path, errors, *args, …)

Raised when a stub fails validation.

exception micropy.exceptions.MicropyException

Bases: Exception

Generic MicroPy Exception.

exception micropy.exceptions.RequirementException(*args, **kwargs)

Bases: micropy.exceptions.MicropyException

A Requirement Exception Occurred.

exception micropy.exceptions.RequirementNotFound(*args, **kwargs)

Bases: micropy.exceptions.RequirementException

A requirement could not be found.

exception micropy.exceptions.StubError(message=None, stub=None)

Bases: micropy.exceptions.MicropyException

Exception for any errors raised by stubs.

exception micropy.exceptions.StubNotFound(stub_name=None)

Bases: micropy.exceptions.StubError

Raised when a stub cannot be found.

exception micropy.exceptions.StubValidationError(path, errors, *args, **kwargs)

Bases: micropy.exceptions.StubError

Raised when a stub fails validation.