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

Signals an invalid property. More...

#include <jem/util/PropertyException.h>

Inheritance diagram for jem::util::PropertyException:
Inheritance graph

Public Member Functions

 PropertyException (const String &place="", const String &msg="")
 Constructs a PropertyException. More...
 
virtual String name () const
 Returns the class name of this exception. More...
 
- 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...
 

Detailed Description

A PropertyException is thrown if a property can not be found or if the value of a property is invalid (wrong type, out of range, etc.).

See also
Properties

Constructor & Destructor Documentation

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

Constructs a PropertyException given a context string and an error message string.

Parameters
place- the context in which this exception was thrown.
msg- an error message.
Postcondition
this->where() == place &&
this->what() == msg

Member Function Documentation

virtual String jem::util::PropertyException::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::Exception.