public class ParameterException
extends com.atlassian.renderer.v2.macro.MacroException
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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 parameterpublic 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()
Copyright © 2003-2014 Atlassian. All Rights Reserved.