peersim.config
Class MissingParameterException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by peersim.config.MissingParameterException
All Implemented Interfaces:
java.io.Serializable

public class MissingParameterException
extends java.lang.RuntimeException

Exception thrown to indicate that a configuration property is not defined. It is thrown exclusively by Configuration, since it is the only class that has access to the set of defined properties.

See Also:
Serialized Form

Method Summary
 java.lang.String getMessage()
          Extends message with info from stack trace.
 java.lang.String getShortMessage()
          Returns the exception message without stack trace information
 
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getMessage

public java.lang.String getMessage()
Extends message with info from stack trace. It tries to guess what class called Configuration and adds relevant info from the stack trace about it to the message.

Overrides:
getMessage in class java.lang.Throwable

getShortMessage

public java.lang.String getShortMessage()
Returns the exception message without stack trace information