Source code for snow.exceptions

[docs]class SnowException(Exception): pass
[docs]class ConfigurationException(SnowException): """Configuration error"""
[docs]class StreamExhausted(SnowException): """Signals there are no further items produced by the iterator"""
[docs]class PayloadValidationError(SnowException): """Local payload validation against a Resource Schema failed"""
[docs]class NoAuthenticationMethod(SnowException): """No authentication method was provided"""
[docs]class UnexpectedContentType(SnowException): """Unexpected content type from server"""
[docs]class ErrorResponse(SnowException): """An error was returned from server"""
[docs]class UnexpectedSchema(SnowException): """Schema not of snow.resource.schema.Schema type"""
[docs]class UnexpectedValue(SnowException): """Typically raised when a Snow method receives unexpected input"""
[docs]class SchemaError(SnowException): """Generic exception raised on schema issues, e.g. integrity errors"""
[docs]class NoLocationField(SchemaError): """The schema lacks a __location__ field"""
[docs]class SelectError(SnowException): """Raised on query builder issues"""
[docs]class NoSchemaFields(SnowException): """The schema lacks fields definitions"""
[docs]class TooManyItems(SnowException): """The request yielded too many results"""
[docs]class NoItems(SnowException): """The request yielded no results"""