idmtools.core.exceptions module¶
Define idmtools common exception as well as idmtools system exception handler.
Copyright 2021, Bill & Melinda Gates Foundation. All rights reserved.
- exception idmtools.core.exceptions.ExperimentNotFound(experiment_id: str, platform: TPlatform = None)[source]¶
Bases:
Exception
Thrown when an experiment cannot be found on a platform.
- exception idmtools.core.exceptions.UnknownItemException[source]¶
Bases:
Exception
Thrown when an unknown item type is passed to idmtools.
This usually occurs within the platform operation area.
- exception idmtools.core.exceptions.NoPlatformException[source]¶
Bases:
Exception
Cannot find a platform matching the one requested by user.
- exception idmtools.core.exceptions.TopLevelItem[source]¶
Bases:
Exception
Thrown when a parent of a top-level item is requested by the platform.
- exception idmtools.core.exceptions.UnsupportedPlatformType[source]¶
Bases:
Exception
Occurs when an item is not supported by a platform but is requested.
- exception idmtools.core.exceptions.NoTaskFound[source]¶
Bases:
Exception
Thrown when a simulation has no task defined.
- idmtools.core.exceptions.idmtools_error_handler(exctype, value: Exception, tb)[source]¶
Global exception handler. This will write our errors in a nice format as well as find document links if attached to the exception.
- Parameters:
exctype – Type of exception
value – Value of the exception
tb – Traceback
- Returns:
None