Package com.gigaspaces.exception.lrmi
Class ApplicationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.util.concurrent.ExecutionException
com.gigaspaces.exception.lrmi.ApplicationException
- All Implemented Interfaces:
SmartExternalizable,Externalizable,Serializable
An Application Exception abstracts a logical exception rather than an exception in network
infrastructure (which is abstracted by RemoteException).
When the LRMIRuntime invoked() method is called (on the server side), it tries to invoke the
method on the designated object. If the method itself throws an exception, LRMIRuntime
encapsulates the exception in an application exception, and throws it back to the protocol
adapter. The protocol adapter should transmit the exception to its client peer and throw the
exception to the application.
- Since:
- 4.0
- Author:
- Igor Goldenberg
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidMethods inherited from class java.lang.Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.gigaspaces.serialization.SmartExternalizable
enabledSmartExternalizableWithReference
-
Constructor Details
-
ApplicationException
public ApplicationException()For Externalizable -
ApplicationException
-
-
Method Details
-
fillInStackTrace
- Overrides:
fillInStackTracein classThrowable
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-