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

Method __init__

lib/sqlalchemy/exc.py:530–546  ·  view source on GitHub ↗
(
        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 from the content-addressed store, hash-verified

528 connection_invalidated: bool = False
529
530 def __init__(
531 self,
532 message: str,
533 statement: Optional[str],
534 params: Optional[_AnyExecuteParams],
535 orig: Optional[BaseException],
536 hide_parameters: bool = False,
537 code: Optional[str] = None,
538 ismulti: Optional[bool] = None,
539 ):
540 SQLAlchemyError.__init__(self, message, code=code)
541 self.statement = statement
542 self.params = params
543 self.orig = orig
544 self.ismulti = ismulti
545 self.hide_parameters = hide_parameters
546 self.detail: List[str] = []
547
548 def add_detail(self, msg: str) -> None:
549 self.detail.append(msg)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected