UWSJobError

class safir.uws.UWSJobError(error_type, error_code, message, detail=None)

Bases: object

Failure information about a job.

Parameters:

Attributes Summary

detail

Extended error message with additional detail.

Methods Summary

to_dict()

Convert to a dictionary, primarily for logging.

to_xml_model()

Convert to a Pydantic XML model.

Attributes Documentation

detail: str | None = None

Extended error message with additional detail.

Methods Documentation

to_dict()

Convert to a dictionary, primarily for logging.

Return type:

dict[str, str | None]

to_xml_model()

Convert to a Pydantic XML model.

Return type:

ErrorSummary