Package org.mapfish.print
Class ExceptionUtils
java.lang.Object
org.mapfish.print.ExceptionUtils
Util class for exception handling.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Throwable
Because exceptions might get re-thrown several times, an error message like "java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: ..." might get created.
-
Method Details
-
getRootCause
Because exceptions might get re-thrown several times, an error message like "java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: ..." might get created. To avoid this, this method finds the root cause, so that only a message like "java.lang.IllegalArgumentException: ..." is shown.- Parameters:
e
- A throwable.- Returns:
- root Throwable
-