Class MarshalledInvocationResult
java.lang.Object
net.sourceforge.jbizmo.commons.transport.MarshalledInvocationResult
- All Implemented Interfaces:
Serializable
Instances of this class represent the result of a remote method invocation
Copyright 2010 (C) by Martin Ganserer
- Version:
- 1.0.0
- Author:
- Martin Ganserer
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMarshalledInvocationResult(Serializable returnValue) ConstructorMarshalledInvocationResult(Throwable throwable) Constructor -
Method Summary
Modifier and TypeMethodDescriptionGet the invocation resultboolean
-
Constructor Details
-
MarshalledInvocationResult
Constructor- Parameters:
returnValue-
-
MarshalledInvocationResult
Constructor- Parameters:
throwable-
-
-
Method Details
-
getReturnValue
Get the invocation result- Returns:
- the result of the invocation
- Throws:
Throwable- if the remote method has thrown an exception
-
hasException
public boolean hasException()- Returns:
- true if an exception was thrown
-
getException
- Returns:
- an available invocation exception or null
-