mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-30 00:47:12 +00:00
1d9483ff73
* Added exception translator specific mutex used with try_translate_exceptions Fixes #5346 * - Replaced with_internals_for_exception_translator by with_exception_translators - Incremented PYBIND11_INTERNALS_VERSION - Added a test * style: pre-commit fixes * Fixed formatting and added explicit to ctors * Addressed PR review comments --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
11 lines
253 B
Python
11 lines
253 B
Python
from __future__ import annotations
|
|
|
|
|
|
class PythonMyException7(Exception):
|
|
def __init__(self, message):
|
|
self.message = message
|
|
super().__init__(message)
|
|
|
|
def __str__(self):
|
|
return "[PythonMyException7]: " + self.message.a
|