esgf_core_utils.models.exceptions
Exceptions
Missing Permission Exception |
|
Operation not permitted Exception |
|
Unexpected extenison Exception |
|
Expected extension missing Exception |
|
RFC 9457 Exception |
|
STAC validation Exception |
|
Authorization Exception |
|
Item already exists Exception |
|
Item does not exist Exception |
|
Unknown Exception |
Package Contents
- exception esgf_core_utils.models.exceptions.MissingPermissionException(permission_type: str, target: str, role: str = '')
Bases:
ExceptionMissing Permission Exception
- type
- role = ''
- target
- exception esgf_core_utils.models.exceptions.OperationNotPermittedException(op: str)
Bases:
ExceptionOperation not permitted Exception
- status_code = 400
- type = 'https://esgf.io/publication/errors/operation-not-permitted'
- title = 'The operation you attempted is not permitted'
- detail
- exception esgf_core_utils.models.exceptions.UnexpectedExtensionException(extension: str)
Bases:
ExceptionUnexpected extenison Exception
- status_code = 400
- type = 'https://esgf.io/publication/errors/unexpected-extension'
- title = 'There is an unexpected extension in your request'
- detail
- exception esgf_core_utils.models.exceptions.ExpectedExtensionsMissingException(extensions: list[str])
Bases:
ExceptionExpected extension missing Exception
- status_code = 400
- type = 'https://esgf.io/publication/errors/expected-extension-missing'
- title = 'A required extension is missing from your request'
- detail = 'Your request is missing required extensions: `[]` -- please add this extenison and try again.'
- exception esgf_core_utils.models.exceptions.RFC9457Exception
Bases:
ExceptionRFC 9457 Exception
- status_code: int
- type: str
- title: str
- detail: str
- instance: str
- exception esgf_core_utils.models.exceptions.STACValidationException
Bases:
RFC9457ExceptionSTAC validation Exception
- status_code = 400
- type = 'https://esgf.io/publication/errors/stac-validation'
- title = 'Your request in invalid'
- detail = 'Your request is invalid -- please ensure your request is valid and try again.'
- exception esgf_core_utils.models.exceptions.AuthorizationException(instance: str)
Bases:
RFC9457ExceptionAuthorization Exception
- status_code = 403
- type = 'https://esgf.io/publication/errors/missing-permission'
- title = 'You do not have permission'
- detail = 'You do not have the required permission to perform that operation -- please check with your...
- instance
- exception esgf_core_utils.models.exceptions.ItemAlreadyExistsException(collection: str, item: str, instance: str)
Bases:
RFC9457ExceptionItem already exists Exception
- status_code = 409
- type = 'https://esgf.io/publication/errors/item-already-exists'
- title = 'The Item you attempted to publish already exists'
- detail
- item
- instance
- exception esgf_core_utils.models.exceptions.ItemDoesNotExistException(collection: str, item: str, instance: str)
Bases:
RFC9457ExceptionItem does not exist Exception
- status_code = 404
- type = 'https://esgf.io/publication/errors/item-does-not-exist'
- title = 'The Item you attempted to update does not exist'
- detail
- item
- instance
- exception esgf_core_utils.models.exceptions.UnknownException(instance: str)
Bases:
RFC9457ExceptionUnknown Exception
- status_code = 500
- type = 'https://esgf.io/publication/errors/unknown'
- title = 'An unidentified server side error occurred'
- detail = 'Please report this error to help@esgf.io so that we can identify and correct the problem.'
- instance