| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Thrown to indicate that a method has been passed an illegal or |
| | | * inappropriate argument. |
| | | * Thrown to indicate that a method has been passed an illegal or inappropriate |
| | | * argument. |
| | | * <p> |
| | | * A {@code LocalizedIllegalArgumentException} contains a localized |
| | | * error message which maybe used to provide the user with detailed |
| | | * diagnosis information. The localized message can be retrieved using |
| | | * the {@link #getMessageObject} method. |
| | | * A {@code LocalizedIllegalArgumentException} contains a localized error |
| | | * message which maybe used to provide the user with detailed diagnosis |
| | | * information. The localized message can be retrieved using the |
| | | * {@link #getMessageObject} method. |
| | | * <p> |
| | | * A {@code LocalizedIllegalArgumentException} is typically used to |
| | | * indicate problems parsing values such as distinguished names and |
| | | * filters. |
| | | * A {@code LocalizedIllegalArgumentException} is typically used to indicate |
| | | * problems parsing values such as distinguished names and filters. |
| | | */ |
| | | @SuppressWarnings("serial") |
| | | public class LocalizedIllegalArgumentException extends |
| | | IllegalArgumentException implements LocalizableException |
| | | public class LocalizedIllegalArgumentException extends IllegalArgumentException |
| | | implements LocalizableException |
| | | { |
| | | // The I18N message associated with this exception. |
| | | private final LocalizableMessage message; |
| | |
| | | |
| | | |
| | | /** |
| | | * Creates a new localized illegal argument exception with the |
| | | * provided message. |
| | | * Creates a new localized illegal argument exception with the provided |
| | | * message. |
| | | * |
| | | * @param message |
| | | * The message that explains the problem that occurred. |
| | | */ |
| | | public LocalizedIllegalArgumentException(LocalizableMessage message) |
| | | public LocalizedIllegalArgumentException(final LocalizableMessage message) |
| | | { |
| | | super(String.valueOf(message)); |
| | | this.message = message; |
| | |
| | | |
| | | |
| | | /** |
| | | * Creates a new localized illegal argument exception with the |
| | | * provided message and cause. |
| | | * Creates a new localized illegal argument exception with the provided |
| | | * message and cause. |
| | | * |
| | | * @param message |
| | | * The message that explains the problem that occurred. |
| | | * @param cause |
| | | * The cause which may be later retrieved by the |
| | | * {@link #getCause} method. A {@code null} value is |
| | | * permitted, and indicates that the cause is nonexistent or |
| | | * unknown. |
| | | * The cause which may be later retrieved by the {@link #getCause} |
| | | * method. A {@code null} value is permitted, and indicates that the |
| | | * cause is nonexistent or unknown. |
| | | */ |
| | | public LocalizedIllegalArgumentException(LocalizableMessage message, |
| | | Throwable cause) |
| | | public LocalizedIllegalArgumentException(final LocalizableMessage message, |
| | | final Throwable cause) |
| | | { |
| | | super(String.valueOf(message), cause); |
| | | this.message = message; |