MLIR 22.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"

Public Member Functions

 MLIRError (llvm::Twine message, std::vector< PyDiagnostic::DiagnosticInfo > &&errorDiagnostics={})

Public Attributes

std::string message
std::vector< PyDiagnostic::DiagnosticInfoerrorDiagnostics

Detailed Description

Custom exception that allows access to error diagnostic information.

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

Definition at line 1326 of file IRCore.h.

Constructor & Destructor Documentation

◆ MLIRError()

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

Definition at line 1327 of file IRCore.h.

References errorDiagnostics, and message.

Member Data Documentation

◆ errorDiagnostics

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

Definition at line 1331 of file IRCore.h.

Referenced by MLIRError(), and NB_MODULE().

◆ message

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

Definition at line 1330 of file IRCore.h.

Referenced by MLIRError(), and NB_MODULE().


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