Oracle Data-aware Controls Reference

oracle.dacf.dataset
Class ValidationException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byoracle.dacf.dataset.ValidationException
All Implemented Interfaces:
java.io.Serializable

public class ValidationException
extends java.lang.Exception

This exception is thrown by ValidationListener in response to a ValidationEvent to indicate that the item included in the event is invalid.

See Also:
Serialized Form

Constructor Summary
ValidationException(java.lang.String s, int reason)
          Constructs a default ValidationException object.
ValidationException(java.lang.String s, int reason, boolean continueNavigation)
          Constructs ValidationException object.
 
Method Summary
 boolean getContinueNavigation()
          Get the continueNavigation value
 int getReason()
          Get the reason for generating this exception
 void setContinueNavigation(boolean continueNavigation)
          Set the continueNavigation flag to the new value
 void setReason(int reason)
          Set the reason for generating this exception
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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 s,
                           int reason)
Constructs a default ValidationException object. The default behaviour abrupts the navigation if the ValidationEvent as a result of attempted focus change

Parameters:
s - Detail message describing the exception
reason - Reason for raising this exception.

ValidationException

public ValidationException(java.lang.String s,
                           int reason,
                           boolean continueNavigation)
Constructs ValidationException object.

Parameters:
s - Detail message describing the exception
reason - Reason for raising this exception.
continueNavigation - set to true if navigation should continue else false
Method Detail

setContinueNavigation

public final void setContinueNavigation(boolean continueNavigation)
Set the continueNavigation flag to the new value

Parameters:
continueNavigation - true if navigation should continue else false

getContinueNavigation

public final boolean getContinueNavigation()
Get the continueNavigation value

Returns:
true if navigation should continue else false

getReason

public final int getReason()
Get the reason for generating this exception

Returns:
reason

setReason

public final void setReason(int reason)
                     throws java.lang.IllegalArgumentException
Set the reason for generating this exception

Parameters:
reason - The reason code
Throws:
java.lang.IllegalArgumentException - Reason code should be between ValidationManager.COLUMN_INVALID to ValidationManager.SESSION_INVALID

Oracle Data-aware Controls Reference

 

Copyright © 1997, 2003, Oracle. All rights reserved.