Class DirPoll.DirPollException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.jpos.iso.ISOException
org.jpos.util.DirPoll.DirPollException
- All Implemented Interfaces:
Serializable, Loggeable
- Enclosing class:
DirPoll
Exception thrown by
DirPoll.Processor or DirPoll.FileProcessor to signal a processing error.- Since:
- jPOS 1.2.7
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.DirPollException(Exception nested) Constructs a DirPollException wrapping the given exception.DirPollException(String detail) Constructs a DirPollException with the given message.DirPollException(String detail, Exception nested) Constructs a DirPollException with a message and nested exception. -
Method Summary
Methods inherited from class ISOException
dump, getNested, getTagName, printStackTrace, printStackTrace, printStackTrace, toStringModifier and TypeMethodDescriptionvoiddump(PrintStream p, String indent) Dumps a human-readable representation of this exception to the print stream.Returns the nested (wrapped) exception, if any.protected StringReturns the XML tag name used when dumping this exception.voidvoidvoidtoString()Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTraceMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Loggeable
dumpModifier and TypeMethodDescriptiondefault voiddump(PrintStream p, String indent, LogRenderer.Type type) Dumps a representation of this object using the specified renderer type.
-
Constructor Details
-
DirPollException
public DirPollException()Default constructor. -
DirPollException
Constructs a DirPollException with the given message.- Parameters:
detail- the error message
-
DirPollException
Constructs a DirPollException wrapping the given exception.- Parameters:
nested- the nested exception
-
DirPollException
Constructs a DirPollException with a message and nested exception.- Parameters:
detail- the error messagenested- the nested exception
-
-
Method Details
-
isRetry
Returns whether the failed request should be retried.- Returns:
- true if retry is requested
-
setRetry
Sets whether the failed request should be retried.- Parameters:
retry- true to retry, false to move to bad directory
-