1 #ifndef ROSE_Tree_Exception_H
2 #define ROSE_Tree_Exception_H
3 #include <Rose/Tree/BasicTypes.h>
5 #include <Rose/Exception.h>
Base class for errors related to the AST.
Error when attaching a vertex to a tree and the vertex is already attached somewhere else...
Main namespace for the ROSE library.
InsertionError(const BasePtr &)
Construct a new error with the vertex that caused the error.
BasePtr vertex
Vertex that caused the error.
Exception(const std::string &mesg, const BasePtr &)
Construct a new error with the specified message and the causing vertex.
std::shared_ptr< Base > BasePtr
Shared-ownership pointer for Base.
CycleError(const BasePtr &)
Construct a new error with the node that caused the error.
Error when attaching a vertex to a tree would cause a cycle.
Base class for all ROSE exceptions.