Exceptions

cooked_input defines a number of custom exceptions. These are mainly used for tables and commands.

cooked_input exceptions are generally only used for commands. See GetInputCommand for more information on using commands.

ConvertorError:

class cooked_input.ConvertorError

raised by a when a value does not pass conversion.

MaxRetriesError:

class cooked_input.MaxRetriesError

raised when the maximum number of retries is exceeded.

ValidationError:

class cooked_input.ValidationError

raised when a value does not pass validation.

GetInputInterrupt:

class cooked_input.GetInputInterrupt

A cancellation command (COMMAND_ACTION_CANCEL) occurred.

RefreshScreenInterrupt:

class cooked_input.RefreshScreenInterrupt

When raised, directs cooked_input to refresh the display. Used primarily to refresh table items.

PageUpRequest:

class cooked_input.PageUpRequest

When raised, directs cooked_input to go to the previous page in paginated tables

PageDownRequest:

class cooked_input.PageDownRequest

When raised, directs cooked_input to go to the next page in paginated tables

FirstPageRequest:

class cooked_input.FirstPageRequest

When raised, directs cooked_input to go to the first page in paginated tables

LastPageRequest:

class cooked_input.LastPageRequest

When raised, directs cooked_input to go to the last page in paginated tables

UpOneRowRequest:

class cooked_input.UpOneRowRequest

When raised, directs cooked_input to scroll up one row in paginated tables

DownOneRowRequest:

class cooked_input.DownOneRowRequest

When raised, directs cooked_input to scroll down one row in paginated tables