package com.basic.security.rest;
|
|
import org.androidannotations.annotations.EBean;
|
import org.androidannotations.rest.spring.api.RestErrorHandler;
|
import org.springframework.core.NestedRuntimeException;
|
|
@EBean
|
public class MyErrorHandler implements RestErrorHandler {
|
|
@Override
|
public void onRestClientExceptionThrown(NestedRuntimeException e) {
|
System.out.println("onRestClientExceptionThrown="+e.getMessage());
|
}
|
|
}
|