Source code for tt.errors.base
"""The base tt exception type."""
[docs]class TtError(Exception):
"""Base exception type for tt errors. This exception type should be
sub-classed and is not meant to be raised explicitly.
"""
[docs] def __init__(self, message, *args):
self._message = message
super(TtError, self).__init__(self._message, *args)
@property
def message(self):
"""A helpful message intended to be shown to the end user.
:type: :class:`str <python:str>`
"""
return self._message