GemFire 6.6.1

com.gemstone.gemfire.cache.execute
Class FunctionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.gemstone.gemfire.GemFireException
                  extended by com.gemstone.gemfire.cache.execute.FunctionException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
EmtpyRegionFunctionException, FunctionInvocationTargetException

public class FunctionException
extends GemFireException

Thrown to indicate incorrect execution of Functions in GemFire.

The exception string provides details on the cause of failure.

Since:
6.0
See Also:
FunctionService, Serialized Form

Constructor Summary
FunctionException()
          Creates new function exception with given error message.
FunctionException(String msg)
          Creates new function exception with given error message.
FunctionException(String msg, Throwable cause)
          Creates new function exception with given error message and optional nested exception.
FunctionException(Throwable cause)
          Creates new function exception given throwable as a cause and source of error message.
 
Method Summary
 void addException(Throwable cause)
          Adds exceptions thrown from different nodes to a ds
 void addExceptions(Collection<? extends Throwable> ex)
          Adds the list of exceptions provided
 List<Throwable> getExceptions()
          Returns the list of exceptions thrown from different nodes
 
Methods inherited from class com.gemstone.gemfire.GemFireException
getRootCause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FunctionException

public FunctionException()
Creates new function exception with given error message.

Since:
6.5

FunctionException

public FunctionException(String msg)
Creates new function exception with given error message.

Parameters:
msg -
Since:
6.0

FunctionException

public FunctionException(String msg,
                         Throwable cause)
Creates new function exception with given error message and optional nested exception.

Parameters:
msg -
cause -
Since:
6.0

FunctionException

public FunctionException(Throwable cause)
Creates new function exception given throwable as a cause and source of error message.

Parameters:
cause -
Since:
6.0
Method Detail

addException

public final void addException(Throwable cause)
Adds exceptions thrown from different nodes to a ds

Parameters:
cause -
Since:
6.5

getExceptions

public final List<Throwable> getExceptions()
Returns the list of exceptions thrown from different nodes

Since:
6.5

addExceptions

public final void addExceptions(Collection<? extends Throwable> ex)
Adds the list of exceptions provided

Since:
6.5

GemFire 6.6.1

Copyright © 1997-2011 VMware, Inc. All rights reserved.