|
MLIR 23.0.0git
|
Custom exception that allows access to error diagnostic information. More...
#include "mlir/Bindings/Python/IRCore.h"
Public Member Functions | |
| MLIRError (std::string message, std::vector< PyDiagnostic::DiagnosticInfo > &&errorDiagnostics={}) | |
| const char * | what () const noexcept override |
Static Public Member Functions | |
| static void | bind (nanobind::module_ &m) |
| Bind the MLIRError exception class to the given module. | |
Public Attributes | |
| std::string | message |
| std::vector< PyDiagnostic::DiagnosticInfo > | errorDiagnostics |
Custom exception that allows access to error diagnostic information.
This is translated to the ir.MLIRError python exception when thrown.
|
inline |
Definition at line 1331 of file IRCore.h.
References errorDiagnostics, and message.
Referenced by bind().
|
static |
Bind the MLIRError exception class to the given module.
Definition at line 2790 of file IRCore.cpp.
References errorDiagnostics, mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::formatMLIRError(), message, and MLIRError().
Referenced by mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::populateIRCore().
|
inlineoverridenoexcept |
| std::vector<PyDiagnostic::DiagnosticInfo> mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::MLIRError::errorDiagnostics |
Definition at line 1341 of file IRCore.h.
Referenced by bind(), mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::formatMLIRError(), and MLIRError().
| std::string mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::MLIRError::message |
Definition at line 1340 of file IRCore.h.
Referenced by bind(), mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::formatMLIRError(), MLIRError(), and what().