org.sourceid.saml20.adapter.gui.validation
Class ValidationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.sourceid.saml20.adapter.gui.validation.ValidationException
All Implemented Interfaces:
java.io.Serializable

public class ValidationException
extends java.lang.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.

Author:
Brian Campbell
See Also:
FieldValidator, RowValidator, ConfigurationValidator, Serialized Form

Constructor Summary
ValidationException(java.util.List<java.lang.String> errorMessages)
          Create a new ValidationException with the specified validation error messages.
ValidationException(java.lang.String errorMessage)
          Create a new ValidationException with the specified validation error message.
 
Method Summary
 java.util.List<java.lang.String> getErrorMessages()
          Gets the validation error messages.
 java.lang.String getMessage()
          Returns the detail message.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValidationException

public ValidationException(java.lang.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.

ValidationException

public ValidationException(java.util.List<java.lang.String> errorMessages)
Create a new ValidationException with the specified validation error messages. The error messages will be displayed in the GUI to the user.

Parameters:
errorMessages -
Method Detail

getErrorMessages

public java.util.List<java.lang.String> getErrorMessages()
Gets the validation error messages.

Returns:
the error messages as a List of Strings.

getMessage

public java.lang.String getMessage()
Returns the detail message.

Overrides:
getMessage in class java.lang.Throwable
Returns:
the error messages.


Copyright 2007 Ping Identity Corp. All rights reserved.