Receiving UndeclaredThrowableException even though our custom Exception is declared
Issue
Our code throws a custom checked Exception class. It's declared in the "throws" clause of all our methods within the stacktrace (this is our base Exception for our application and used all over), but at runtime we are receiving this error:
13:24:06,092 ERROR (http-127.0.0.1:8080-5) java.lang.reflect.UndeclaredThrowableException
Do you have any idea why this is happening?
Environment
- Red Hat JBoss Enterprise Application Platform (EAP) 7.x
- Red Hat JBoss Enterprise Application Platform (EAP) 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
