MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / __init__

Method __init__

lib/sqlalchemy/exc.py:695–720  ·  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

693 )
694
695 def __init__(
696 self,
697 statement: Optional[str],
698 params: Optional[_AnyExecuteParams],
699 orig: BaseException,
700 hide_parameters: bool = False,
701 connection_invalidated: bool = False,
702 code: Optional[str] = None,
703 ismulti: Optional[bool] = None,
704 ):
705 try:
706 text = str(orig)
707 except Exception as e:
708 text = "Error in str() of DB-API-generated exception: " + str(e)
709 StatementError.__init__(
710 self,
711 "(%s.%s) %s"
712 % (orig.__class__.__module__, orig.__class__.__name__, text),
713 statement,
714 params,
715 orig,
716 hide_parameters,
717 code=code,
718 ismulti=ismulti,
719 )
720 self.connection_invalidated = connection_invalidated
721
722
723class InterfaceError(DBAPIError):

Callers 7

__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