| org.apache.cocoon.util.location.LocatedException
All known Subclasses: org.apache.cocoon.ProcessingException,
LocatedException | public class LocatedException extends NestableException implements LocatableException,MultiLocatable(Code) | | A cascading and located Exception . It is also
MultiLocatable to easily build
stack traces.
since: 2.1.8 version: $Id: LocatedException.java 446917 2006-09-16 19:10:40Z vgritsenko $ |
LocatedException | public LocatedException(String message)(Code) | | |
addCauseLocations | public static void addCauseLocations(MultiLocatable self, Throwable cause)(Code) | | Add to the location stack all locations of an exception chain. This allows to have all possible
location information in the stacktrace, as some exceptions like SAXParseException don't output
their location in printStackTrace().
Traversal of the call chain stops at the first Locatable exception which is supposed
to handle the loction of its causes by itself.
This method is static as a convenience for
LocatedRuntimeException other implementations of locatable exceptions.
Parameters: self - the current locatable exception Parameters: cause - a cause of self |
ensureCauseChainIsSet | public static void ensureCauseChainIsSet(Throwable thr)(Code) | | Crawl the cause chain and ensure causes are properly set using "initCause" on JDK >= 1.4.
This is needed because some exceptions (e.g. SAXException) don't have a getCause() that is
used to print stacktraces.
|
getMessage | public static String getMessage(String message, List locations)(Code) | | Standard way of building the message of a
LocatableException , as a Java-like
stack trace of locations.
Parameters: message - the exception's message, given by super.getMessage() (can be null) Parameters: locations - the location list (can be null) the message, or null no message and locations were given. |
|
|