richcat.modules.exceptions package

Submodules

richcat.modules.exceptions.exception module

Exception error classes.

exception richcat.modules.exceptions.exception.AbstractRichcatError[source]

Bases: Exception

Abstract richcat error class

ERROR_HEAD = '[bold red]\\[richcat error][/bold red]:'
console = <console width=80 None>
exec_print(error_msg)[source]

Method execute print process

Parameters

error_msg (str) – error message

abstract print_error()[source]
exception richcat.modules.exceptions.exception.RichcatBrokenPipeError[source]

Bases: richcat.modules.exceptions.exception.AbstractRichcatError

RichcatBrokenPipeError class Raise : If pipe is broken.

print_error()[source]
exception richcat.modules.exceptions.exception.RichcatFileNotFoundError(filepath)[source]

Bases: richcat.modules.exceptions.exception.AbstractRichcatError

FileNotFoundError class Raise : If input failed because the path does not exist.

print_error()[source]
exception richcat.modules.exceptions.exception.RichcatIsDirectoryError(filepath)[source]

Bases: richcat.modules.exceptions.exception.AbstractRichcatError

IsDirectory class Raise : If input failed because it is a directory.

print_error()[source]
exception richcat.modules.exceptions.exception.RichcatPermissionError(filepath)[source]

Bases: richcat.modules.exceptions.exception.AbstractRichcatError

PermissionError class Raise : If input failed because of permission denied.

print_error()[source]
exception richcat.modules.exceptions.exception.RichcatTerminalWidthGetError[source]

Bases: richcat.modules.exceptions.exception.AbstractRichcatError

TerminalWidthGetError class Raise : If ‘stty’ failed.

print_error()[source]

Module contents