Class InvalidInputException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
org.netbeans.validation.api.InvalidInputException
- All Implemented Interfaces:
Serializable, Iterable<Problem>
A separate exception class for invalid user (or stored values). Specifically
used with the interface Validating.
Any InvalidInputException has an actual localized message which is safe
to show to a user - that is the distinguishing feature.
- Author:
- Tim Boudreau
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInvalidInputException(String msg, Problems problems) InvalidInputException(String message, Validating v) InvalidInputException(Problems problems) -
Method Summary
Modifier and TypeMethodDescriptionGet an object which lists all of the problems encountered with the input, with severity and localized message.iterator()static voidthrowIfNecessary(String msg, Validating v) static voidMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
InvalidInputException
-
InvalidInputException
-
InvalidInputException
-
InvalidInputException
-
-
Method Details
-
throwIfNecessary
- Throws:
InvalidInputException
-
throwIfNecessary
- Throws:
InvalidInputException
-
getMessage
- Overrides:
getMessagein classThrowable
-
getProblems
Get an object which lists all of the problems encountered with the input, with severity and localized message.- Returns:
-
iterator
-