exception documentation
class StatementError(SQLAlchemyError): (source)
Known subclasses: sqlalchemy.exc.DBAPIError
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 |
Undocumented |
Class Variable | connection |
Undocumented |
Instance Variable | detail |
Undocumented |
Instance Variable | hide |
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 |
Undocumented |
Inherited from SQLAlchemyError
:
Method | __str__ |
Undocumented |
Method | _message |
Undocumented |
Inherited from HasDescriptionCode
(via SQLAlchemyError
):
Instance Variable | code |
Undocumented |
Method | _code |
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)
¶
overridden in
sqlalchemy.exc.DBAPIError
Undocumented