Package com.jalios.jcms.fileprocessor
Class ProcessingException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.jalios.jcms.fileprocessor.ProcessingException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
ProcessingPostponedException
public class ProcessingException extends java.lang.Exception
Wrapping exception of exception happening during processing or indexing. (If an exception occurred as a FileActionComponent is invoked, not in the FileProcessor architecture). Used for Exception that can be explicitely defined. Exemple : to wrap IOException of the underlying API. While throwing such an exception, given the circonstances, you may :- either blacklisting the file globally : exemple, the file is a password protected PDF;
- either blacklisting the file only for this processor : a Word95 doc file can't be processed by an OpenOffice processor;
- either not blacklisting the file : for un unknown underlying exception, or if the processor is waiting for external service.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ProcessingException(java.lang.String message)
ProcessingException(java.lang.String message, boolean globalBlacklist)
ProcessingException(java.lang.String message, java.lang.Class<? extends FileActionComponent> processorBlackListedClass)
ProcessingException(java.lang.Throwable cause)
ProcessingException(java.lang.Throwable cause, boolean globalBlacklist)
A processingException instanciated with this cionstructor must be thrown if an exception occured while processing.ProcessingException(java.lang.Throwable cause, java.lang.Class<? extends FileActionComponent> processorBlackListedClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<? extends FileActionComponent>
getProcessorBlackListedClass()
For certain reason, one file may be blacklisted only for a FileActionComponent, not to cause the same exception, at each iteration.boolean
isGlobalyBlacklisted()
For certain reason, one file may be Globally blacklisted, not to cause the same exception, at each iteration.boolean
isIgnoreExceptionInLog()
void
setGlobalBlacklist(boolean globalBlacklist)
Set the glablal blacklist behaviour.void
setIgnoreExceptionInLog(boolean ignoreExceptionInLog)
void
setProcessorBlackListedClass(java.lang.Class<? extends FileActionComponent> processorBlackListedClass)
-
-
-
Constructor Detail
-
ProcessingException
public ProcessingException(java.lang.Throwable cause)
-
ProcessingException
public ProcessingException(java.lang.String message)
-
ProcessingException
public ProcessingException(java.lang.Throwable cause, boolean globalBlacklist)
A processingException instanciated with this cionstructor must be thrown if an exception occured while processing.- Parameters:
cause
- a possible cause exception (eg. from a used library)globalBlacklist
- if true, the file will be globally blacklisted
-
ProcessingException
public ProcessingException(java.lang.String message, boolean globalBlacklist)
- Parameters:
message
-globalBlacklist
-
-
ProcessingException
public ProcessingException(java.lang.Throwable cause, java.lang.Class<? extends FileActionComponent> processorBlackListedClass)
- Parameters:
cause
-processorBlackListedClass
-
-
ProcessingException
public ProcessingException(java.lang.String message, java.lang.Class<? extends FileActionComponent> processorBlackListedClass)
- Parameters:
message
-processorBlackListedClass
-
-
-
Method Detail
-
isGlobalyBlacklisted
public boolean isGlobalyBlacklisted()
For certain reason, one file may be Globally blacklisted, not to cause the same exception, at each iteration.- Returns:
- true if the file must be globaly blacklisted
-
setGlobalBlacklist
public void setGlobalBlacklist(boolean globalBlacklist)
Set the glablal blacklist behaviour.- Parameters:
globalBlacklist
-
-
getProcessorBlackListedClass
public java.lang.Class<? extends FileActionComponent> getProcessorBlackListedClass()
For certain reason, one file may be blacklisted only for a FileActionComponent, not to cause the same exception, at each iteration.- Returns:
- true if the file must be globaly blacklisted
-
setProcessorBlackListedClass
public void setProcessorBlackListedClass(java.lang.Class<? extends FileActionComponent> processorBlackListedClass)
-
isIgnoreExceptionInLog
public boolean isIgnoreExceptionInLog()
-
setIgnoreExceptionInLog
public void setIgnoreExceptionInLog(boolean ignoreExceptionInLog)
-
-