Example usage for org.apache.wicket.util.convert ConversionException setSourceValue

List of usage examples for org.apache.wicket.util.convert ConversionException setSourceValue

Introduction

In this page you can find the example usage for org.apache.wicket.util.convert ConversionException setSourceValue.

Prototype

public final ConversionException setSourceValue(final Object sourceValue) 

Source Link

Document

Sets the tried value.

Usage

From source file:abid.password.wicket.converters.ExtendedPasswordConverter.java

License:Apache License

private void error(String value, String errorKey, Exception e) {
    ConversionException exception = new ConversionException(
            "Could not convert password into '" + ExtendedPassword.class.getName() + "'", e);
    exception.setSourceValue(value);
    exception.setResourceKey(getClass().getSimpleName() + "." + errorKey);
    throw exception;
}