public final class RpcException extends RuntimeException
Invoker.invoke(Invocation),
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static int |
BIZ_EXCEPTION |
static int |
FORBIDDEN_EXCEPTION |
static int |
NETWORK_EXCEPTION |
static int |
SERIALIZATION_EXCEPTION |
static int |
TIMEOUT_EXCEPTION |
static int |
UNKNOWN_EXCEPTION |
| Constructor and Description |
|---|
RpcException() |
RpcException(int code) |
RpcException(int code,
String message) |
RpcException(int code,
String message,
Throwable cause) |
RpcException(int code,
Throwable cause) |
RpcException(String message) |
RpcException(String message,
Throwable cause) |
RpcException(Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
int |
getCode() |
boolean |
isBiz() |
boolean |
isForbidded() |
boolean |
isNetwork() |
boolean |
isSerialization() |
boolean |
isTimeout() |
void |
setCode(int code) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic static final int UNKNOWN_EXCEPTION
public static final int NETWORK_EXCEPTION
public static final int TIMEOUT_EXCEPTION
public static final int BIZ_EXCEPTION
public static final int FORBIDDEN_EXCEPTION
public static final int SERIALIZATION_EXCEPTION
public RpcException()
public RpcException(String message)
public RpcException(Throwable cause)
public RpcException(int code)
public RpcException(int code,
String message)
public RpcException(int code,
Throwable cause)
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.