Jive reference manual
List of all members | Public Member Functions
jem::ParseException Class Reference

Signals a parse error. More...

#include <jem/base/ParseException.h>

Inheritance diagram for jem::ParseException:
Inheritance graph

Public Member Functions

 ParseException (const String &place="", const String &msg="")
 Constructs a ParseException instance. More...
 
virtual String name () const
 Returns the class name of this exception. More...
 
- Public Member Functions inherited from jem::IllegalInputException
 IllegalInputException (const String &where="", const String &what="illegal input")
 
- Public Member Functions inherited from jem::Exception
 Exception (const String &place=String(), const String &msg=String())
 Creates an Exception instance. More...
 
- Public Member Functions inherited from jem::Throwable
 Throwable (const String &place=String(), Const String &msg=String())
 Creates a new Throwable instance. More...
 
 Throwable (const Throwable &rhs)
 Creates a copy of another Throwable instance. More...
 
 ~Throwable ()
 Destructor. More...
 
virtual String where () const
 Returns a string describing the context in which this Throwable was thrown. More...
 
virtual String what () const
 Returns a string describing why this Throwable was thrown. More...
 

Additional Inherited Members

- Public Types inherited from jem::IllegalInputException
typedef Exception Super
 

Detailed Description

The ParseException class is thrown when a parse error occurs. For instance, the function Integer::parse() throws a ParseException if it cannot convert its string argument to an integer number. Well-behaved applications should catch and handle ParseException instances.

Constructor & Destructor Documentation

jem::ParseException::ParseException ( const String place = "",
const String msg = "" 
)
explicit

Constructs a ParseException instance given a context and message string.

Parameters
place- a string describing in which context this exception was thrown.
msg- a string describing why this exception was thrown.

Member Function Documentation

virtual String jem::ParseException::name ( ) const
virtual

Returns the full class name – including namespaces – of this Throwable instance. This function should be overriden by derived classes. For instance, a class named flip::FlopException should return the string "flip::FlopException".

Returns
A string describing the class name of this object.

Reimplemented from jem::IllegalInputException.