Source code for orkgnlp.common.util.exceptions

# -*- coding: utf-8 -*-
"""
Includes custom-defined exceptions
"""


[docs] class ORKGNLPValidationError(Exception): """ Indicates an incorrect input attempt by the caller. """ def __init__(self, message: str): super().__init__(message)
[docs] class ORKGNLPIllegalStateError(RuntimeError): """ Indicates an incorrect order of function calls by the caller. """ def __init__(self, message: str): super().__init__(message)
[docs] class ORKGNLPUnknownServiceError(Exception): """ Indicates a request for a service that does not exist. """ def __init__(self, message: str): super().__init__(message)