|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
peersim.config.IllegalParameterException
public class IllegalParameterException
Exception thrown to indicate that a
configuration property has an invalid value. It is thrown by
several methods in Configuration
and can be thrown by any
component that reads the configuration.
Constructor Summary | |
---|---|
IllegalParameterException(java.lang.String name,
java.lang.String message)
Calls super constructor. |
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 |
Constructor Detail |
---|
public IllegalParameterException(java.lang.String name, java.lang.String message)
name
- Name of configuration property that is invalidmessage
- Additional info about why the value is invalidMethod Detail |
---|
public java.lang.String getMessage()
Configuration
and
adds relevant info from the stack trace about it to the message.
getMessage
in class java.lang.Throwable
public java.lang.String getShortMessage()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |