Previous: Music_Node Functions, Up: music node class definition



7.5.6 Exceptions

There is one exception defined for this class:

     struct memory_error : public overflow_error() {
       memory_error()
     };
     
     music_node::memory_error::memory_error()
       : overflow_error("Not enough memory to allocate to music_node item") {}

This is used to indicate that there is not enough memory to add a music_node item.