MCPcopy Create free account
hub / github.com/pybind/pybind11 / __init__

Method __init__

tests/custom_exceptions.py:5–7  ·  view source on GitHub ↗
(self, message)

Source from the content-addressed store, hash-verified

3
4class PythonMyException7(Exception):
5 def __init__(self, message):
6 self.message = message
7 super().__init__(message)
8
9 def __str__(self):
10 return "[PythonMyException7]: " + self.message.a

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected