public class ParameterException
extends com.atlassian.renderer.v2.macro.MacroException
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ParameterException(String message)
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 parameterpublic 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()
Copyright © 2003–2015 Atlassian. All rights reserved.