|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.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(java.lang.String message)
|
|
ParameterException(java.lang.String message,
java.lang.Throwable cause)
|
|
ParameterException(java.lang.Throwable cause,
java.lang.String name,
java.lang.String value,
java.util.Set<java.lang.String> acceptableValues)
Constructor that captures failure information so more useful feedback can be provided to the user. |
Method Summary | |
---|---|
java.util.Set<java.lang.String> |
getAcceptableValues()
Returns acceptable values of this parameter. |
java.lang.String |
getName()
Returns the name of the parameter that caused the problem. |
java.lang.String |
getValue()
Returns the (invalid) value of the parameter that caused the problem. |
void |
setAcceptableValues(java.util.Set<java.lang.String> acceptableValues)
Sets acceptable values of this parameter. |
void |
setName(java.lang.String name)
Sets the name of the parameter that caused the problem. |
void |
setValue(java.lang.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(java.lang.String message)
public ParameterException(java.lang.String message, java.lang.Throwable cause)
public ParameterException(java.lang.Throwable cause, java.lang.String name, java.lang.String value, java.util.Set<java.lang.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(java.lang.String name)
name
- the name of the parameter that caused the problempublic void setValue(java.lang.String value)
value
- the (invalid) value of the parameter that caused the problempublic void setAcceptableValues(java.util.Set<java.lang.String> acceptableValues)
acceptableValues
- acceptable values of this parameterpublic java.lang.String getName()
public java.lang.String getValue()
public java.util.Set<java.lang.String> getAcceptableValues()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |