Docmosis API 4.5.0

com.docmosis.document
Class ProcessingException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.docmosis.document.ProcessingException
All Implemented Interfaces:
Serializable

public class ProcessingException
extends Exception

This general exception indicates something went wrong with the procesing of the documents or templates. It has the concept of a retryable failure so that the process may be tried again if desired.

See Also:
Serialized Form

Constructor Summary
ProcessingException()
           
ProcessingException(String message)
           
ProcessingException(String message, Throwable cause)
           
ProcessingException(Throwable cause)
           
 
Method Summary
 boolean canRetry()
          Determine if retrying the process might be viable.
 void setCanRetry(boolean canRetry)
          Set the retry flag.
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProcessingException

public ProcessingException()

ProcessingException

public ProcessingException(String message)

ProcessingException

public ProcessingException(Throwable cause)

ProcessingException

public ProcessingException(String message,
                           Throwable cause)
Method Detail

canRetry

public boolean canRetry()
Determine if retrying the process might be viable. This may happen if one of the underlying pooled resources fails as opposed to the program. Retrying might be viable in such cases.

Returns:
true if a retry can be considered.

setCanRetry

public void setCanRetry(boolean canRetry)
Set the retry flag.

Parameters:
canRetry -

Docmosis API 4.5.0

Copyright © 2014 Docmosis Pty Ltd. All Rights Reserved.