Module textual.errors

Expand source code
from __future__ import annotations


class TextualError(Exception):
    """Base class for Textual errors."""


class NoWidget(TextualError):
    """Specified widget was not found."""


class RenderError(TextualError):
    """An object could not be rendered."""


class DuplicateKeyHandlers(TextualError):
    """More than one handler for a single key press. E.g. key_ctrl_i and key_tab handlers both found on one object."""

Classes

class DuplicateKeyHandlers (*args, **kwargs)

More than one handler for a single key press. E.g. key_ctrl_i and key_tab handlers both found on one object.

Expand source code
class DuplicateKeyHandlers(TextualError):
    """More than one handler for a single key press. E.g. key_ctrl_i and key_tab handlers both found on one object."""

Ancestors

class NoWidget (*args, **kwargs)

Specified widget was not found.

Expand source code
class NoWidget(TextualError):
    """Specified widget was not found."""

Ancestors

class RenderError (*args, **kwargs)

An object could not be rendered.

Expand source code
class RenderError(TextualError):
    """An object could not be rendered."""

Ancestors

class TextualError (*args, **kwargs)

Base class for Textual errors.

Expand source code
class TextualError(Exception):
    """Base class for Textual errors."""

Ancestors

  • builtins.Exception
  • builtins.BaseException

Subclasses