ROSE  0.11.145.0
Public Member Functions | List of all members
Sawyer::Tree::Vertex< B >::InsertionError Class Reference

Description

template<class B>
class Sawyer::Tree::Vertex< B >::InsertionError

Error when attaching a vertex to a tree and the vertex is already attached somewhere else.

If the operation were allowed to continue without throwing an exception, the data structure would no longer be a tree.

Definition at line 150 of file Tree.h.

#include <util/Sawyer/Tree.h>

Inheritance diagram for Sawyer::Tree::Vertex< B >::InsertionError:
Inheritance graph
[legend]
Collaboration diagram for Sawyer::Tree::Vertex< B >::InsertionError:
Collaboration graph
[legend]

Public Member Functions

 InsertionError (const UserBasePtr &vertex)
 Construct a new error with the vertex that caused the error. More...
 
- Public Member Functions inherited from Sawyer::Tree::Vertex< B >::Exception
 Exception (const std::string &mesg, const UserBasePtr &vertex)
 Construct a new error with the specified message and the causing vertex. More...
 
- Public Member Functions inherited from Sawyer::Exception::RuntimeError
 RuntimeError (const std::string &mesg)
 Constructor taking a description of the error. More...
 

Additional Inherited Members

- Public Attributes inherited from Sawyer::Tree::Vertex< B >::Exception
UserBasePtr vertex
 Vertex that caused the error. More...
 

Constructor & Destructor Documentation

template<class B>
Sawyer::Tree::Vertex< B >::InsertionError::InsertionError ( const UserBasePtr vertex)
inlineexplicit

Construct a new error with the vertex that caused the error.

Definition at line 153 of file Tree.h.


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