Code example for UndeclaredThrowableException

Methods: getUndeclaredThrowable

0
    				log.error("Could not unmarshall detail to a DispositionReport");
    			} 
    		} 
    	} else if (e instanceof UndeclaredThrowableException) {
    		UndeclaredThrowableException ute =(UndeclaredThrowableException) e;
    		if (ute.getUndeclaredThrowable()!=null && ute.getUndeclaredThrowable().getCause()!=null
    		    && ute.getUndeclaredThrowable().getCause().getCause() instanceof DispositionReportFaultMessage) {
    			DispositionReportFaultMessage faultMsg = (DispositionReportFaultMessage) ute.getUndeclaredThrowable().getCause().getCause();
	    		report = faultMsg.getFaultInfo();
    		} 
    	} else { 
    		log.error("Unsupported Exception: " + e.getClass());
    	} 
    	return report;
    } 
} 
 
Contextual code suggestions in your IDE  Get Codota for Java