exception_item#

See ExceptionItem.

class aws_resource_search.items.exception_item.T_EXCEPTION_ITEM_VARIABLES(*args, **kwargs)[source]#
class aws_resource_search.items.exception_item.ExceptionItem(title: str, subtitle: ~typing.Optional[str] = None, uid: str = <factory>, arg: ~typing.Optional[str] = None, autocomplete: ~typing.Optional[str] = None, variables: ~aws_resource_search.items.exception_item.T_EXCEPTION_ITEM_VARIABLES = <factory>)[source]#

Represent a Python exception detail in the dropdown menu.

enter_handler(ui: UI)[source]#

Behavior:

  • If we have an exception, we write the traceback data

    path_exception_item_txt and open it in the default app.

  • If not, nothing happens (most likely NOT)

classmethod from_error(error: Exception, title: Optional[str] = None, subtitle: Optional[str] = None, uid: Optional[str] = None, arg: Optional[str] = None, autocomplete: Optional[str] = None)[source]#

Create one ExceptionItem from an Exception object.