Skip to content

warnings

Warnings for general usage by the Turtle Canon tool.

Note

These warnings are not like regular Python Warnings. Instead, they are Exceptions that will be caught and treated specially by the CLI.

EmptyFile

Bases: TurtleCanonWarning

A file's content is empty.

Source code in turtle_canon/utils/warnings.py
16
17
class EmptyFile(TurtleCanonWarning):
    """A file's content is empty."""

NoTriples

Bases: TurtleCanonWarning

No triples found in the parsed ontology.

Source code in turtle_canon/utils/warnings.py
20
21
class NoTriples(TurtleCanonWarning):
    """No triples found in the parsed ontology."""

TurtleCanonWarning

Bases: Exception

Base Warning for the Turtle Canon tool.

Source code in turtle_canon/utils/warnings.py
12
13
class TurtleCanonWarning(Exception):
    """Base Warning for the Turtle Canon tool."""