Source code for src.nadeo_api.error

'''
- Custom exception types
'''


[docs] class AudienceError(ValueError): ''' - a token with the wrong audience was passed to a request - inherits from `ValueError` ''' pass
[docs] class ParameterError(ValueError): ''' - an invalid parameter was passed to a function - inherits from `ValueError` ''' pass
[docs] class UsageError(ValueError): ''' - an invalid token type was passed to a function - may also be used if an endpoint is only useful with a service account, but a dedicated server account was used - inherits from `ValueError` ''' pass