Source code for cheminfopy.errors
# -*- coding: utf-8 -*-
"""Custom error types for cheminfopy"""
__all__ = [
"InvalidAttachmentTypeError",
"InvalidSourceError",
"AuthenticationError",
"InvalidInstanceUrlError",
"RequestFailed",
]
[docs]class InvalidAttachmentTypeError(ValueError):
"""Raised in case of incompatible attachment type"""
[docs]class InvalidSourceError(ValueError):
"""Raised if a "data_type"/"source" key does not match the schema"""
[docs]class InvalidInstanceUrlError(ValueError):
"""Raised if the provided instance URL seems invalid"""