Class MarshalledInvocationResult

java.lang.Object
net.sourceforge.jbizmo.commons.transport.MarshalledInvocationResult
All Implemented Interfaces:
Serializable

public class MarshalledInvocationResult extends Object implements 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 Details

    • MarshalledInvocationResult

      public MarshalledInvocationResult(Serializable returnValue)
      Constructor
      Parameters:
      returnValue -
    • MarshalledInvocationResult

      public MarshalledInvocationResult(Throwable throwable)
      Constructor
      Parameters:
      throwable -
  • Method Details

    • getReturnValue

      public Serializable getReturnValue() throws Throwable
      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

      public Throwable getException()
      Returns:
      an available invocation exception or null