com.bigdata.service.ndx
Class ClientException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.bigdata.service.ndx.ClientException
All Implemented Interfaces:
Serializable

public class ClientException
extends RuntimeException

Exposes a linked list of retry exceptions leading to the failure of an AbstractDataServiceProcedureTask.

Version:
$Id: ClientException.java 2265 2009-10-26 12:51:06Z thompsonbry $
Author:
Bryan Thompson
See Also:
Serialized Form

Constructor Summary
ClientException(String msg, List<Throwable> causes)
           
ClientException(String msg, Throwable cause)
           
ClientException(String msg, Throwable cause, List<Throwable> causes)
           
 
Method Summary
 Throwable getCause()
          The final exception thrown which caused the task to fail.
 List<Throwable> getCauses()
          The list of causes, one per failed attempt.
 void printStackTrace()
           
 void printStackTrace(PrintStream s)
           
 void printStackTrace(PrintWriter w)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClientException

public ClientException(String msg,
                       Throwable cause)
Parameters:
msg -
cause -

ClientException

public ClientException(String msg,
                       Throwable cause,
                       List<Throwable> causes)
Parameters:
msg -
cause -

ClientException

public ClientException(String msg,
                       List<Throwable> causes)
Parameters:
msg -
Method Detail

getCauses

public List<Throwable> getCauses()
The list of causes, one per failed attempt.

Returns:
See Also:
getCause()

getCause

public Throwable getCause()
The final exception thrown which caused the task to fail. Normally this will indicate that the retry count has been exceeded and getCauses() will report the underlying problem(s) which the task encountered.

Overrides:
getCause in class Throwable
See Also:
getCauses()

printStackTrace

public void printStackTrace()
Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace(PrintStream s)
Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace(PrintWriter w)
Overrides:
printStackTrace in class Throwable


Copyright © 2006-2009 SYSTAP, LLC. All Rights Reserved.