clarin.sru.exception

exception clarin.sru.exception.SRUException(uri: str, details: str | None = None, message: str | None = None, *args)[source]

Bases: Exception

An exception raised, if something went wrong processing the request. For diagnostic codes, see constants in SRUConstant.

See also

SRUConstant

get_diagnostic() SRUDiagnostic[source]

Create a SRU diagnostic from this exception.

exception clarin.sru.exception.SRUConfigException[source]

Bases: Exception

An exception raised, if some error occurred with the SRUServer configuration.