exception documentation

class StatementError(SQLAlchemyError): (source)

Known subclasses: sqlalchemy.exc.DBAPIError

View In Hierarchy

An error occurred during execution of a SQL statement. :class:`StatementError` wraps the exception raised during execution, and features :attr:`.statement` and :attr:`.params` attributes which supply context regarding the specifics of the statement which had an issue. The wrapped exception object is available in the :attr:`.orig` attribute.

Method __init__ Undocumented
Method __reduce__ Undocumented
Method add_detail Undocumented
Class Variable connection_invalidated Undocumented
Instance Variable detail Undocumented
Instance Variable hide_parameters Undocumented
Instance Variable ismulti multi parameter passed to repr_params(). None is meaningful.
Instance Variable orig The original exception that was thrown.
Instance Variable params The parameter list being used when this exception occurred.
Instance Variable statement The string SQL statement being invoked when this exception occurred.
Method _sql_message Undocumented

Inherited from SQLAlchemyError:

Method __str__ Undocumented
Method _message Undocumented

Inherited from HasDescriptionCode (via SQLAlchemyError):

Instance Variable code Undocumented
Method _code_str Undocumented
def __init__(self, message: str, statement: Optional[str], params: Optional[_AnyExecuteParams], orig: Optional[BaseException], hide_parameters: bool = False, code: Optional[str] = None, ismulti: Optional[bool] = None): (source)
def __reduce__(self) -> Union[str, Tuple[Any, ...]]: (source)

Undocumented

def add_detail(self, msg: str): (source)

Undocumented

connection_invalidated: bool = (source)

Undocumented

Undocumented

hide_parameters = (source)

Undocumented

multi parameter passed to repr_params(). None is meaningful.

The original exception that was thrown.

The parameter list being used when this exception occurred.

statement = (source)

The string SQL statement being invoked when this exception occurred.

@_preloaded.preload_module('sqlalchemy.sql.util')
def _sql_message(self) -> str: (source)