is there a reason why caught exception instance is not being used at addError error method call?
Currently I'm having problems retrieving jndi instance and I have no idea why, this is what is print at my console:
10:28:21,114 |-INFO in ch.qos.logback.classic.net.SMTPAppender[EMAIL] - Looking up javax.mail.Session at JNDI location [java:comp/env/mail/FooBar]
10:28:21,115 |-ERROR in ch.qos.logback.classic.net.SMTPAppender[EMAIL] - Failed to obtain javax.mail.Session from JNDI location [java:comp/env/mail/FooBar]
10:28:21,115 |-ERROR in ch.qos.logback.classic.net.SMTPAppender[EMAIL] - Failed to obtain javax.mail.Session. Cannot start.
Wouldn't be better to add exception instance to ErrorStatus?
Thanks in advance.