| org.apache.cocoon.util.location.LocatedException org.apache.cocoon.ProcessingException
All known Subclasses: org.apache.cocoon.forms.FormsException, org.apache.cocoon.ConnectionResetException, org.apache.cocoon.components.flow.InvalidContinuationException, org.apache.cocoon.ResourceNotFoundException,
ProcessingException | public class ProcessingException extends LocatedException (Code) | | This Exception is thrown every time there is a problem in processing
a request.
author: Pierpaolo Fumagalli author: (Apache Software Foundation) version: CVS $Id: ProcessingException.java 433543 2006-08-22 06:22:54Z crossley $ |
Method Summary | |
public static ProcessingException | throwLocated(String message, Throwable thr, Location location) Throw a located exception given an existing exception and the location where
this exception was catched.
If the exception is already a ProcessingException or a
LocatedRuntimeException ,
the location is added to the original exception's location chain and the original exception
is rethrown (description is ignored) to limit exception nesting. | public static ProcessingException | throwLocated(String message, Throwable thr, List locations) Throw a located exception given an existing exception and the locations where
this exception was catched.
If the exception is already a ProcessingException or a
LocatedRuntimeException ,
the locations are added to the original exception's location chain and the original exception
is rethrown (description is ignored) to limit exception nesting. |
ProcessingException | public ProcessingException(String message)(Code) | | Construct a new ProcessingException instance.
|
ProcessingException | public ProcessingException(Exception ex)(Code) | | Creates a new ProcessingException instance.
Parameters: ex - an Exception value |
ProcessingException | public ProcessingException(String message, Throwable t)(Code) | | Construct a new ProcessingException that references
a parent Exception.
|
ProcessingException | public ProcessingException(String message, Location location)(Code) | | Construct a new ProcessingException that has an associated location.
|
throwLocated | public static ProcessingException throwLocated(String message, Throwable thr, Location location) throws ProcessingException(Code) | | Throw a located exception given an existing exception and the location where
this exception was catched.
If the exception is already a ProcessingException or a
LocatedRuntimeException ,
the location is added to the original exception's location chain and the original exception
is rethrown (description is ignored) to limit exception nesting. Otherwise, a new
ProcessingException is thrown, wrapping the original exception.
Note: this method returns an exception as a convenience if you want to keep the throw
semantics in the caller code, i.e. write
throw ProcessingException.throwLocated(...);
instead of
ProcessingException.throwLocated(...);
return;
Parameters: message - a message (can be null ) Parameters: thr - the original exception (can be null ) Parameters: location - the location (can be null ) a (fake) located exception throws: ProcessingException - or LocatedRuntimeException |
throwLocated | public static ProcessingException throwLocated(String message, Throwable thr, List locations) throws ProcessingException(Code) | | Throw a located exception given an existing exception and the locations where
this exception was catched.
If the exception is already a ProcessingException or a
LocatedRuntimeException ,
the locations are added to the original exception's location chain and the original exception
is rethrown (description is ignored) to limit exception nesting. Otherwise, a new
ProcessingException is thrown, wrapping the original exception.
Note: this method returns an exception as a convenience if you want to keep the throw
semantics in the caller code, i.e. write
throw ProcessingException.throwLocated(...);
instead of
ProcessingException.throwLocated(...);
return;
Parameters: message - a message (can be null ) Parameters: thr - the original exception (can be null ) Parameters: locations - the locations (can be null ) a (fake) located exception throws: ProcessingException - or LocatedRuntimeException |
|
|