bpp-phyl  2.2.0
bpp::NodeException Class Reference

General exception thrown when something is wrong with a particular node. More...

#include <Bpp/Phyl/TreeExceptions.h>

+ Inheritance diagram for bpp::NodeException:
+ Collaboration diagram for bpp::NodeException:

Public Member Functions

 NodeException (const std::string &text, int nodeId)
 Build a new NodePException. More...
 
virtual ~NodeException () throw ()
 
virtual int getNodeId () const
 Get the id of node that threw the exception. More...
 

Protected Attributes

int nodeId_
 

Detailed Description

General exception thrown when something is wrong with a particular node.

Definition at line 57 of file TreeExceptions.h.

Constructor & Destructor Documentation

◆ NodeException()

bpp::NodeException::NodeException ( const std::string &  text,
int  nodeId 
)
inline

Build a new NodePException.

Parameters
textA message to be passed to the exception hierarchy.
nodeIdThe id of the node that threw the exception.

Definition at line 69 of file TreeExceptions.h.

◆ ~NodeException()

virtual bpp::NodeException::~NodeException ( )
throw (
)
inlinevirtual

Definition at line 73 of file TreeExceptions.h.

Member Function Documentation

◆ getNodeId()

virtual int bpp::NodeException::getNodeId ( ) const
inlinevirtual

Get the id of node that threw the exception.

Returns
The id of the faulty node.

Reimplemented in bpp::NodePException.

Definition at line 81 of file TreeExceptions.h.

References nodeId_.

Member Data Documentation

◆ nodeId_

int bpp::NodeException::nodeId_
protected

Definition at line 61 of file TreeExceptions.h.

Referenced by getNodeId(), and bpp::NodePException::getNodeId().


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