exceptions¶
EMMOntoPy esceptions and warnings, and utilities to check dependencies.
AmbiguousLabelError (LookupError, AttributeError, EMMOntoPyException)
¶
Error raised when a label is ambiguous.
Source code in ontopy/exceptions.py
class AmbiguousLabelError(LookupError, AttributeError, EMMOntoPyException):
"""Error raised when a label is ambiguous."""
EMMOntoPyException (Exception)
¶
A BaseException class for EMMOntoPy
Source code in ontopy/exceptions.py
class EMMOntoPyException(Exception):
"""A BaseException class for EMMOntoPy"""
EMMOntoPyWarning (Warning)
¶
A BaseWarning class for EMMOntoPy
Source code in ontopy/exceptions.py
class EMMOntoPyWarning(Warning):
"""A BaseWarning class for EMMOntoPy"""
EntityClassDefinitionError (EMMOntoPyException)
¶
Error in ThingClass definition.
Source code in ontopy/exceptions.py
class EntityClassDefinitionError(EMMOntoPyException):
"""Error in ThingClass definition."""
ExcelError (EMMOntoPyException)
¶
Raised on errors in Excel file.
Source code in ontopy/exceptions.py
class ExcelError(EMMOntoPyException):
"""Raised on errors in Excel file."""
IncompatibleVersion (EMMOntoPyWarning)
¶
An installed dependency version may be incompatible with a functionality of this package - or rather an outcome of a functionality. This is not critical, hence this is only a warning.
Source code in ontopy/exceptions.py
class IncompatibleVersion(EMMOntoPyWarning):
"""An installed dependency version may be incompatible with a functionality
of this package - or rather an outcome of a functionality.
This is not critical, hence this is only a warning."""
IndividualWarning (EMMOntoPyWarning)
¶
A warning related to an individual, e.g. punning.
Source code in ontopy/exceptions.py
class IndividualWarning(EMMOntoPyWarning):
"""A warning related to an individual, e.g. punning."""
LabelDefinitionError (EMMOntoPyException)
¶
Error in label definition.
Source code in ontopy/exceptions.py
class LabelDefinitionError(EMMOntoPyException):
"""Error in label definition."""
ManchesterError (EMMOntoPyException)
¶
Raised on invalid Manchester notation.
Source code in ontopy/exceptions.py
class ManchesterError(EMMOntoPyException):
"""Raised on invalid Manchester notation."""
NoSuchLabelError (LookupError, AttributeError, EMMOntoPyException)
¶
Error raised when a label cannot be found.
Source code in ontopy/exceptions.py
class NoSuchLabelError(LookupError, AttributeError, EMMOntoPyException):
"""Error raised when a label cannot be found."""
ReadCatalogError (OSError)
¶
Error reading catalog file.
Source code in ontopy/exceptions.py
class ReadCatalogError(IOError):
"""Error reading catalog file."""
UnknownVersion (EMMOntoPyException)
¶
Cannot retrieve version from a package.
Source code in ontopy/exceptions.py
class UnknownVersion(EMMOntoPyException):
"""Cannot retrieve version from a package."""