Exceptions
A module holding a decorator to wrap a function to add a traceback to any exception raised.
class IntegrationNotFoundError(name)
#
class SchedulerNotRunningError
#
Bases: RuntimeError
The scheduler is not running.
class EventNotKnownError
#
Bases: ValueError
The event is not a known one.
class NoChoiceMadeError
#
Bases: ValueError
No choice was made.
class NodeNotFoundError
#
Bases: ValueError
The node was not found.
class RequestNotMetError
#
Bases: ValueError
Raised when a request is not met.
class DuplicateNamesError(node)
#
Bases: ValueError
Raised when duplicate names are found.
| PARAMETER | DESCRIPTION |
|---|---|
node |
The node that has children with duplicate names.
TYPE:
|
Source code in src/amltk/exceptions.py
def safe_map(f, args)
#
Map a function over an iterable, catching any exceptions.
| PARAMETER | DESCRIPTION |
|---|---|
f |
The function to map.
TYPE:
|
args |
The iterable to map over. |
| YIELDS | DESCRIPTION |
|---|---|
R | tuple[Exception, str]
|
The return value of the function, or the exception raised. |
Source code in src/amltk/exceptions.py
def safe_starmap(f, args)
#
Map a function over an iterable, catching any exceptions.
| PARAMETER | DESCRIPTION |
|---|---|
f |
The function to map.
TYPE:
|
args |
The iterable to map over. |
| YIELDS | DESCRIPTION |
|---|---|
R | tuple[Exception, str]
|
The return value of the function, or the exception raised. |