oracle.forms.jdapi
Class JdapiStatusException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--oracle.forms.jdapi.JdapiException
                          |
                          +--oracle.forms.jdapi.JdapiStatusException
All Implemented Interfaces:
java.io.Serializable

public class JdapiStatusException
extends JdapiException

Subclass of JdapiException that incorporates the status code for the error as returned by the forms stack.

The status codes are included as members of JdapiTypes, ending in _STID. Do not program against the numbers themselves
(eg. if(status == 1)... )
but use the members
(eg. if(status == JdapiTypes.FAIL_STID)...).

See Also:
Serialized Form

Constructor Summary
JdapiStatusException(java.lang.String message, int statusCode)
          Constructor taking message and status code as an argument.
 
Method Summary
 int getStatusCode()
          Returns the status code of this exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JdapiStatusException

public JdapiStatusException(java.lang.String message,
                            int statusCode)
Constructor taking message and status code as an argument.
Parameters:
message - Message describing the exception.
statusCode - the status code associated with the exception.
Method Detail

getStatusCode

public int getStatusCode()
Returns the status code of this exception.