ccsw.getInternalApiWrapper().getProxy().getUserApi() .getUser(userToken); sometimes throws org.apache.cxf.interceptor.Fault on a simple authentication failure, which is an UNchecked exception. java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException org.apache.cxf.common.i18n.UncheckedException org.apache.cxf.interceptor.Fault Catch it, and return "authorization failed"
ccsw.getInternalApiWrapper().getProxy().getUserApi()
.getUser(userToken);
sometimes throws org.apache.cxf.interceptor.Fault on a simple authentication failure, which is an UNchecked exception.
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.cxf.common.i18n.UncheckedException
org.apache.cxf.interceptor.Fault
Catch it, and return "authorization failed"