Class ValidationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.sourceid.saml20.adapter.gui.validation.ValidationException
-
- All Implemented Interfaces:
Serializable
public class ValidationException extends Exception
An exception to be thrown by validators to communicate to the PingFederate server that invalid configuration values have been entered into the GUI by the user.- See Also:
FieldValidator,RowValidator,ConfigurationValidator, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ValidationException(String errorMessage)Create a new ValidationException with the specified validation error message.ValidationException(List<String> errorMessages)Create a new ValidationException with the specified validation error messages.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getErrorMessages()Gets the validation error messages.StringgetMessage()Returns the detail message.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ValidationException
public ValidationException(String errorMessage)
Create a new ValidationException with the specified validation error message. The error message will be displayed in the GUI to the user.- Parameters:
errorMessage- the error message to display to the user.
-
-
Method Detail
-
getErrorMessages
public List<String> getErrorMessages()
Gets the validation error messages.- Returns:
- the error messages as a List of Strings.
-
getMessage
public String getMessage()
Returns the detail message.- Overrides:
getMessagein classThrowable- Returns:
- the error messages.
-
-