Package oracle.forms.jdapi
Class JdapiIllegalStateException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
oracle.forms.jdapi.JdapiException
oracle.forms.jdapi.JdapiIllegalStateException
- All Implemented Interfaces:
Serializable
This exception thrown when calling methods on invalid forms objects.
The Jdapi classes are only thin wrappers over the Forms objects. When you
create a Block, you really create a Block in Forms memory and have a Java class that
references it. If the Block in Forms memory is destroyed, for example, by calling
destroy
on its owning Form, then all of its objects are
removed from Forms memory. You still have
a reference to the Block object, the Block object still exists, but it refernces
invalid memory.
In this case, if you call a method such as getName()
on the Block, it
it will throw this exception.
If you have an object of questionable validity, you can prevent this error by calling
isValidFormsObject
on the object before you
attempt to use it.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a newJdapiIllegalStateException
with a null message.JdapiIllegalStateException
(String message) Constructor taking message as argument.Constructor taking another throwable as argument. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
JdapiIllegalStateException
public JdapiIllegalStateException()Create a newJdapiIllegalStateException
with a null message. -
JdapiIllegalStateException
Constructor taking message as argument.- Parameters:
message
- Message describing the exception.
-
JdapiIllegalStateException
Constructor taking another throwable as argument.- Parameters:
t
- Throwable object.
-