minitrino.core.errors module#

Error classes for Minitrino CLI.

exception minitrino.core.errors.MinitrinoError(msg: str = '')[source][source]#

Bases: Exception

Base exception class for all Minitrino-related errors.

Parameters:

msg (str, optional) – Message to log and include in the exception.

msg[source]#

Error message associated with the exception.

Type:

str

exit_code[source]#

Exit code for the error type. Defaults to 1.

Type:

int

exit_code = 1[source]#
exception minitrino.core.errors.UserError(msg: str = '', hint_msg: str = '')[source][source]#

Bases: MinitrinoError

User errors that Minitrino can safely log and display.

msg[source]#

Primary error message to display.

Type:

str

hint_msg[source]#

Optional user guidance for resolving the issue.

Type:

str

exit_code[source]#

Exit code used to signal a user-handled error. Defaults to 2.

Type:

int

Parameters:
  • msg (str, optional) – Message to log and include in the exception.

  • hint_msg (str, optional) – Additional guidance for resolving the issue.

exit_code = 2[source]#