UWSError

exception safir.uws.UWSError(error_code, message, detail=None)

An error with an associated error code.

SODA requires errors be in text/plain and start with an error code. Adopt that as a general representation of errors produced by the UWS layer to simplify generating error responses.

Parameters:
  • error_code (ErrorCode) – SODA error code.

  • message (str) – Exception message, which will be the stringification of the exception.

  • detail (str | None, default: None) – Additional detail.