Overture  Version 25
NTreeNodeExceptions.h
Go to the documentation of this file.
1 #ifndef NTREE_NODE_EXCEPTIONS_H
2 #define NTREE_NODE_EXCEPTIONS_H
3 
4 #include "AssertException.h"
5 #include "AbstractException.h"
6 
7 // exceptions for NTreeNode
8 
10 {
11 
12 public:
13  virtual void debug_print() const { cerr<<"\nNTreeNode Error"; }
14 
15 };
16 
18 {
19 
20 public:
21  void debug_print() const
22  {
24  cerr<<": InvalidNode : Tree node failed internal validity check";
25  }
26 };
27 
29 {
30 public:
31  void debug_print() const
32  {
34  cerr<<": TreeDegreeViolation : attempting to manipulate non-existant node";
35  }
36 };
37 
39 {
40 public:
41  void debug_print() const
42  {
44  cerr<<": NodeFullError : attempting to add items to an already full node";
45  }
46 };
47 
48 #endif