|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.arsdigita.util.parameter.ParameterError
Subject to change.
Information about an error for a parameter. Parameter implementors
will add ParameterErrors to the passed in
ErrorList when their parameters encounter error
conditions.
ErrorList,
Parameter| Field Summary | |
static String |
versionId
|
| Constructor Summary | |
ParameterError(Parameter param,
String message)
Constructs a parameter error for param. |
|
ParameterError(Parameter param,
Throwable throwable)
Constructs a parameter error for param, drawing
its error message from throwable. |
|
| Method Summary | |
String |
getMessage()
Gets the message associated with this error. |
Parameter |
getParameter()
Gets the parameter associated with this error. |
Throwable |
getThrowable()
Gets the throwable, if present, that corresponds to the error. |
String |
toString()
Returns a string representation of the error suitable for debugging. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final String versionId
| Constructor Detail |
public ParameterError(Parameter param,
String message)
param.
param - The Parameter whose value is in
error; it cannot be nullmessage - A String description of the error
public ParameterError(Parameter param,
Throwable throwable)
param, drawing
its error message from throwable.
param - The Parameter whose value is in
error; it cannot be nullthrowable - The Throwable for the error; it
cannot be null| Method Detail |
public final Parameter getParameter()
Parameter in error; it cannot be nullpublic final String getMessage()
String message for the error; it
cannot be nullpublic final Throwable getThrowable()
Throwable of this error; it may be
nullpublic String toString()
super.toString() + "," + param.getName()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||