colesico.framework.rpc.clientapi.handler.ApplicationErrorHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of colesico-rpc Show documentation
Show all versions of colesico-rpc Show documentation
Colesico framework Remote Procedure Call for Services
The newest version!
package colesico.framework.rpc.clientapi.handler;
import colesico.framework.rpc.clientapi.RpcErrorHandler;
import colesico.framework.rpc.teleapi.writer.ApplicationExceptionWriter;
import colesico.framework.service.ApplicationException;
public class ApplicationErrorHandler implements RpcErrorHandler {
@Override
public RuntimeException createException(ApplicationExceptionWriter.ApplicationError error) {
return new ApplicationException(error.getMessage());
}
}