com.caucho.hessian.io.HessianMethodSerializationException Java Examples
The following examples show how to use
com.caucho.hessian.io.HessianMethodSerializationException.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: HessianProtocol.java From dubbo-2.6.5 with Apache License 2.0 | 5 votes |
@Override protected int getErrorCode(Throwable e) { if (e instanceof HessianConnectionException) { if (e.getCause() != null) { Class<?> cls = e.getCause().getClass(); if (SocketTimeoutException.class.equals(cls)) { return RpcException.TIMEOUT_EXCEPTION; } } return RpcException.NETWORK_EXCEPTION; } else if (e instanceof HessianMethodSerializationException) { return RpcException.SERIALIZATION_EXCEPTION; } return super.getErrorCode(e); }
Example #2
Source File: HessianProtocol.java From dubbox with Apache License 2.0 | 5 votes |
protected int getErrorCode(Throwable e) { if (e instanceof HessianConnectionException) { if (e.getCause() != null) { Class<?> cls = e.getCause().getClass(); if (SocketTimeoutException.class.equals(cls)) { return RpcException.TIMEOUT_EXCEPTION; } } return RpcException.NETWORK_EXCEPTION; } else if (e instanceof HessianMethodSerializationException) { return RpcException.SERIALIZATION_EXCEPTION; } return super.getErrorCode(e); }
Example #3
Source File: HessianProtocol.java From dubbox-hystrix with Apache License 2.0 | 5 votes |
protected int getErrorCode(Throwable e) { if (e instanceof HessianConnectionException) { if (e.getCause() != null) { Class<?> cls = e.getCause().getClass(); if (SocketTimeoutException.class.equals(cls)) { return RpcException.TIMEOUT_EXCEPTION; } } return RpcException.NETWORK_EXCEPTION; } else if (e instanceof HessianMethodSerializationException) { return RpcException.SERIALIZATION_EXCEPTION; } return super.getErrorCode(e); }
Example #4
Source File: HessianProtocol.java From dubbox with Apache License 2.0 | 5 votes |
protected int getErrorCode(Throwable e) { if (e instanceof HessianConnectionException) { if (e.getCause() != null) { Class<?> cls = e.getCause().getClass(); if (SocketTimeoutException.class.equals(cls)) { return RpcException.TIMEOUT_EXCEPTION; } } return RpcException.NETWORK_EXCEPTION; } else if (e instanceof HessianMethodSerializationException) { return RpcException.SERIALIZATION_EXCEPTION; } return super.getErrorCode(e); }
Example #5
Source File: HessianProtocol.java From dubbox with Apache License 2.0 | 5 votes |
protected int getErrorCode(Throwable e) { if (e instanceof HessianConnectionException) { if (e.getCause() != null) { Class<?> cls = e.getCause().getClass(); if (SocketTimeoutException.class.equals(cls)) { return RpcException.TIMEOUT_EXCEPTION; } } return RpcException.NETWORK_EXCEPTION; } else if (e instanceof HessianMethodSerializationException) { return RpcException.SERIALIZATION_EXCEPTION; } return super.getErrorCode(e); }