Source code for typechecked._exceptions._error_tag

"""Base class for error tag enums."""
from enum import Enum


[docs] class ErrorTag(str, Enum): """Base class for error tag enums. ErrorTags are used to identify specific error condition sources in the typechecked package. Tests use these tags to assert specific error condition paths at a much more granular level than just checking the exception type or message. """