libqasm
library for handling cQASM files
Classes | Namespaces | Macros
cqasm-error.hpp File Reference

Contains custom exception objects used by libqasm. More...

Go to the source code of this file.

Classes

class  cqasm::error::AnalysisError
 Exception used for analysis errors. More...
 

Namespaces

 cqasm
 Toplevel namespace with entry points for the new API.
 
 cqasm::error
 Namespace for exceptions used by libqasm.
 

Macros

#define CQASM_ANALYSIS_ERROR(Name)
 Defines a new analysis error class. More...
 

Detailed Description

Contains custom exception objects used by libqasm.

Definition in file cqasm-error.hpp.

#include <string>
#include <sstream>
#include <vector>
#include "cqasm-tree.hpp"
#include "cqasm-annotations.hpp"
Include dependency graph for cqasm-error.hpp:
This graph shows which files directly or indirectly include this file:

Macro Definition Documentation

◆ CQASM_ANALYSIS_ERROR

#define CQASM_ANALYSIS_ERROR (   Name)
Value:
class Name : public ::cqasm::error::AnalysisError { \
public: \
explicit Name( \
std::string &&message = "", \
const tree::Annotatable *node = nullptr \
) : \
::cqasm::error::AnalysisError(std::move(message), node) \
{} \
}
Toplevel namespace with entry points for the new API.
STL namespace.
::tree::annotatable::Annotatable Annotatable
Definition: cqasm-tree.hpp:19
Exception used for analysis errors.
Definition: cqasm-error.hpp:27

Defines a new analysis error class.

Definition at line 76 of file cqasm-error.hpp.