|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.wicket.util.convert.ConversionException
public class ConversionException
Thrown for conversion exceptions.
| Constructor Summary | |
|---|---|
ConversionException(String message)
Construct exception with message. |
|
ConversionException(String message,
Throwable cause)
Construct exception with message and cause. |
|
ConversionException(Throwable cause)
Construct exception with cause. |
|
| Method Summary | |
|---|---|
IConverter<?> |
getConverter()
Gets the used converter. |
Format |
getFormat()
Get the used format. |
Locale |
getLocale()
Get the used locale. |
String |
getResourceKey()
|
Object |
getSourceValue()
Gets the tried value. |
Class<?> |
getTargetType()
Gets the target property type. |
Map<String,Object> |
getVariables()
Returns the map of variables for this exception. |
ConversionException |
setConverter(IConverter<?> converter)
Sets the used converter. |
ConversionException |
setFormat(Format format)
Sets the used format. |
ConversionException |
setLocale(Locale locale)
Sets the used locale. |
ConversionException |
setResourceKey(String resourceKey)
Set the resource key for the message that should be displayed. |
ConversionException |
setSourceValue(Object sourceValue)
Sets the tried value. |
ConversionException |
setTargetType(Class<?> targetType)
Sets the target property type. |
ConversionException |
setVariable(String name,
Object value)
Sets a variable that will be used in substitution |
| 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 ConversionException(String message)
message - message
public ConversionException(String message,
Throwable cause)
message - messagecause - causepublic ConversionException(Throwable cause)
cause - cause| Method Detail |
|---|
public final IConverter<?> getConverter()
public final Format getFormat()
public final Locale getLocale()
public final Object getSourceValue()
public final Class<?> getTargetType()
public final ConversionException setConverter(IConverter<?> converter)
converter - the converter.
public final ConversionException setFormat(Format format)
format - the used format.
public final ConversionException setLocale(Locale locale)
locale - the used locale.
public final ConversionException setSourceValue(Object sourceValue)
sourceValue - the tried value.
public final ConversionException setTargetType(Class<?> targetType)
targetType - sets the target property type
public String getResourceKey()
public ConversionException setResourceKey(String resourceKey)
resourceKey - sets the resource key
public ConversionException setVariable(String name,
Object value)
name - variable namevalue - variable value
public Map<String,Object> getVariables()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||