The ExceptionUtils#getRootCause() method can come in very handy in such situations.
More Related Contents:
- NumberFormatException not wrking java
- Can I catch multiple Java exceptions in the same catch clause?
- How do you implement a re-try-catch?
- EOFException – how to handle?
- Throws or try-catch
- How can I catch Event Dispatch Thread (EDT) exceptions?
- throws Exception in finally blocks
- Java InputMismatchException
- How can I catch all exceptions thrown through reading / writing a file?
- How can I solve “java.lang.NoClassDefFoundError”?
- What are the effects of exceptions on performance in Java?
- How to generate exceptions from RepaintManager
- How to create custom exceptions in Java? [closed]
- Given final block not properly padded
- Null check chain vs catching NullPointerException
- Why does a Try/Catch block create new variable scope?
- When should we create our own Java exception classes? [closed]
- How to test that no exception is thrown?
- Using Joda Date & Time API to parse multiple formats
- Why are Exceptions not Checked in .NET?
- Java: Exceptions as control flow?
- What is a suppressed exception?
- What are reasons for Exceptions not to be compatible with throws clauses?
- In Java how can I validate a thrown exception with JUnit?
- Exception other than RuntimeException
- Getting Exception org.apache.logging.slf4j.SLF4JLoggerContext cannot be cast to org.apache.logging.log4j.core.LoggerContext
- Exception in thread “main” java.io.FileNotFoundException: Error
- Illegal operation on empty result set [duplicate]
- Uncatchable ChuckNorrisException
- How to restart thread in java? [duplicate]