JobError#
- exception rapidtools.jobs.JobError(message: str, step_id: str | None = None, step_type: str | None = None)[source]#
Bases:
ValueErrorA job document, or one of its steps, is not valid.
str(error)is the plain message;describe()prefixes it with the step it belongs to, which is what a log or a terminal should show.Example
>>> err = JobError('zoom must be an integer.', step_id='s1', ... step_type='imagery.basemap') >>> str(err) 'zoom must be an integer.' >>> err.describe() "Step 's1' (imagery.basemap): zoom must be an integer."