MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / __init__

Method __init__

lib/sqlalchemy/exc.py:747–772  ·  view source on GitHub ↗
(
        self,
        statement: Optional[str],
        params: Optional[_AnyExecuteParams],
        orig: BaseException,
        hide_parameters: bool = False,
        connection_invalidated: bool = False,
        code: Optional[str] = None,
        ismulti: Optional[bool] = None,
    )

Source from the content-addressed store, hash-verified

745 )
746
747 def __init__(
748 self,
749 statement: Optional[str],
750 params: Optional[_AnyExecuteParams],
751 orig: BaseException,
752 hide_parameters: bool = False,
753 connection_invalidated: bool = False,
754 code: Optional[str] = None,
755 ismulti: Optional[bool] = None,
756 ):
757 try:
758 text = str(orig)
759 except Exception as e:
760 text = "Error in str() of DB-API-generated exception: " + str(e)
761 StatementError.__init__(
762 self,
763 "(%s.%s) %s"
764 % (orig.__class__.__module__, orig.__class__.__name__, text),
765 statement,
766 params,
767 orig,
768 hide_parameters,
769 code=code,
770 ismulti=ismulti,
771 )
772 self.connection_invalidated = connection_invalidated
773
774 @property
775 def driver_exception(self) -> Exception:

Callers 8

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected