|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.atlassian.renderer.v2.macro.MacroException
com.atlassian.confluence.macro.params.ParameterException
public class ParameterException
Thrown when there is a problem while processing a parameter.
Constructor Summary | |
---|---|
ParameterException(String message)
|
|
ParameterException(String message,
Throwable cause)
|
|
ParameterException(Throwable cause,
String name,
String value,
Set<String> acceptableValues)
Constructor that captures failure information so more useful feedback can be provided to the user. |
Method Summary | |
---|---|
Set<String> |
getAcceptableValues()
Returns acceptable values of this parameter. |
String |
getName()
Returns the name of the parameter that caused the problem. |
String |
getValue()
Returns the (invalid) value of the parameter that caused the problem. |
void |
setAcceptableValues(Set<String> acceptableValues)
Sets acceptable values of this parameter. |
void |
setName(String name)
Sets the name of the parameter that caused the problem. |
void |
setValue(String value)
Sets the (invalid) value of the parameter that caused the problem. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, 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 ParameterException(String message)
public ParameterException(String message, Throwable cause)
public ParameterException(Throwable cause, String name, String value, Set<String> acceptableValues)
cause
- the underlying cause, if anyname
- the name of the parameter with the errorvalue
- the (invalid) value that caused the problemacceptableValues
- acceptable values for the parameterMethod Detail |
---|
public void setName(String name)
name
- the name of the parameter that caused the problempublic void setValue(String value)
value
- the (invalid) value of the parameter that caused the problempublic void setAcceptableValues(Set<String> acceptableValues)
acceptableValues
- acceptable values of this parameterpublic String getName()
public String getValue()
public Set<String> getAcceptableValues()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |