Code Fragment: StackEmptyException



/**
 * Exception thrown on performing top or pop of an empty stack.
 */
class StackEmptyException : public RuntimeException {  
public:
  StackEmptyException(const string& err) : RuntimeException(err) {}
};