JavaDoc polishing.
This commit is contained in:
@@ -29,7 +29,7 @@ public class InvalidFormatException extends NestedRuntimeException {
|
||||
private String expectedFormat;
|
||||
|
||||
/**
|
||||
* Create a new invalid format exception
|
||||
* Create a new invalid format exception.
|
||||
* @param invalidValue the invalid value
|
||||
* @param expectedFormat the expected format
|
||||
*/
|
||||
@@ -38,19 +38,19 @@ public class InvalidFormatException extends NestedRuntimeException {
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new invalid format exception
|
||||
* Create a new invalid format exception.
|
||||
* @param invalidValue the invalid value
|
||||
* @param expectedFormat the expected format
|
||||
* @param cause the underlying cause of this exception
|
||||
*/
|
||||
public InvalidFormatException(String invalidValue, String expectedFormat, Throwable cause) {
|
||||
super("Invalid format for value " + invalidValue + "; the expected format was '" + expectedFormat + "'", cause);
|
||||
super("Invalid format for value '" + invalidValue + "'; the expected format was '" + expectedFormat + "'", cause);
|
||||
this.invalidValue = invalidValue;
|
||||
this.expectedFormat = expectedFormat;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new invalid format exception
|
||||
* Create a new invalid format exception.
|
||||
* @param invalidValue the invalid value
|
||||
* @param expectedFormat the expected format
|
||||
* @param message a descriptive message
|
||||
|
||||
@@ -18,18 +18,30 @@ package org.springframework.binding.format;
|
||||
import org.springframework.core.enums.StaticLabeledEnum;
|
||||
|
||||
/**
|
||||
* Format styles.
|
||||
* Format styles, similar to those defined by {@link java.text.DateFormat}.
|
||||
*
|
||||
* @author Keith Donald
|
||||
*/
|
||||
public class Style extends StaticLabeledEnum {
|
||||
|
||||
/**
|
||||
* See {@link java.text.DateFormat#FULL}.
|
||||
*/
|
||||
public static final Style FULL = new Style(0, "Full");
|
||||
|
||||
/**
|
||||
* See {@link java.text.DateFormat#LONG}.
|
||||
*/
|
||||
public static final Style LONG = new Style(1, "Long");
|
||||
|
||||
/**
|
||||
* See {@link java.text.DateFormat#MEDIUM}.
|
||||
*/
|
||||
public static final Style MEDIUM = new Style(2, "Medium");
|
||||
|
||||
/**
|
||||
* See {@link java.text.DateFormat#SHORT}.
|
||||
*/
|
||||
public static final Style SHORT = new Style(3, "Short");
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user