MLIR  19.0.0git
Public Member Functions | Public Attributes | List of all members
mlir::python::MLIRError Struct Reference

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

#include "Bindings/Python/IRModule.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 1271 of file IRModule.h.

Constructor & Destructor Documentation

◆ MLIRError()

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

Definition at line 1272 of file IRModule.h.

Member Data Documentation

◆ errorDiagnostics

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

Definition at line 1276 of file IRModule.h.

◆ message

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

Definition at line 1275 of file IRModule.h.


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