ColdFusion · Exception
What does Java Object Exception mean in ColdFusion?
Catches exceptions thrown by underlying Java objects and libraries CFML code calls into — createObject("java", ...) instances, third-party Java clients, or any Java API invoked directly. You target it with the exception's fully qualified class name (or the generic java.lang.Exception) rather than one of ColdFusion's built-in type keywords.
Catches exceptions thrown by underlying Java objects and libraries CFML code calls into — createObject("java", ...) instances, third-party Java clients, or any Java API invoked directly. You target it with the exception's fully qualified class name (or the generic java.lang.Exception) rather than one of ColdFusion's built-in type keywords.
Catch the specific Java exception class name (e.g. redis.clients.jedis.exceptions.JedisConnectionException) instead of the generic java.lang.Exception so unrelated Java-level failures aren't silently swallowed, and read cfcatch.type to confirm which class was actually caught.