Use right exception type for communication problem , javax.naming.CommunicationException should be thrown instead of javax.naming.NamingException
Brad Maxwell <email@example.com> updated the status of jira WFLY-2839 to Resolved
Customers apps (try - catch blocks) won't be affected by throwing CommunicationException instead of NamingException
Yes, originally it was a generic NamingException, this change just uses sub classes of NamingException which are more specific, so any customer who was catching the NamingException will not be affected, they will still be caught, they will just provide information about the real issue.
Verified with EAP 6.3.0.ER1 / jboss-remote-naming 1.0.8.Final-redhat-1