MLIR 23.0.0git
mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::MLIRError Struct Reference

Custom exception that allows access to error diagnostic information. More...

#include "mlir/Bindings/Python/IRCore.h"

Inheritance diagram for mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::MLIRError:

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::DiagnosticInfoerrorDiagnostics

Detailed Description

Custom exception that allows access to error diagnostic information.

This is translated to the ir.MLIRError python exception when thrown.

Definition at line 1330 of file IRCore.h.

Constructor & Destructor Documentation

◆ MLIRError()

mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::MLIRError::MLIRError ( std::string message,
std::vector< PyDiagnostic::DiagnosticInfo > && errorDiagnostics = {} )
inline

Definition at line 1331 of file IRCore.h.

References errorDiagnostics, and message.

Referenced by bind().

Member Function Documentation

◆ bind()

void mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::MLIRError::bind ( nanobind::module_ & m)
static

◆ what()

const char * mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::MLIRError::what ( ) const
inlineoverridenoexcept

Definition at line 1335 of file IRCore.h.

References message.

Member Data Documentation

◆ errorDiagnostics

std::vector<PyDiagnostic::DiagnosticInfo> mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::MLIRError::errorDiagnostics

◆ message

std::string mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::MLIRError::message

The documentation for this struct was generated from the following files: