public static NamingException namingException ( final String message , final Throwable cause ) { final NamingException exception = new NamingException ( message ) ; if ( cause != null ) exception . initCause ( cause ) ; return exception ; }
Return a general naming exception with a root cause .