com.alibaba.dubbo.rpc
Class RpcException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.alibaba.dubbo.rpc.RpcException
All Implemented Interfaces:
Serializable

public final class RpcException
extends RuntimeException

RPC Exception. (API, Prototype, ThreadSafe)

Since:
1.0
Author:
shawn.qianx, william.liangf
See Also:
Invoker.invoke(Invocation), Serialized Form

Field Summary
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 Summary
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)
           
 
Method Summary
 int getCode()
           
 boolean isBiz()
           
 boolean isForbidded()
           
 boolean isNetwork()
           
 boolean isSerialization()
           
 boolean isTimeout()
           
 void setCode(int code)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNKNOWN_EXCEPTION

public static final int UNKNOWN_EXCEPTION
See Also:
Constant Field Values

NETWORK_EXCEPTION

public static final int NETWORK_EXCEPTION
See Also:
Constant Field Values

TIMEOUT_EXCEPTION

public static final int TIMEOUT_EXCEPTION
See Also:
Constant Field Values

BIZ_EXCEPTION

public static final int BIZ_EXCEPTION
See Also:
Constant Field Values

FORBIDDEN_EXCEPTION

public static final int FORBIDDEN_EXCEPTION
See Also:
Constant Field Values

SERIALIZATION_EXCEPTION

public static final int SERIALIZATION_EXCEPTION
See Also:
Constant Field Values
Constructor Detail

RpcException

public RpcException()

RpcException

public RpcException(String message,
                    Throwable cause)

RpcException

public RpcException(String message)

RpcException

public RpcException(Throwable cause)

RpcException

public RpcException(int code)

RpcException

public RpcException(int code,
                    String message,
                    Throwable cause)

RpcException

public RpcException(int code,
                    String message)

RpcException

public RpcException(int code,
                    Throwable cause)
Method Detail

getCode

public int getCode()

setCode

public void setCode(int code)

isBiz

public boolean isBiz()

isForbidded

public boolean isForbidded()

isTimeout

public boolean isTimeout()

isNetwork

public boolean isNetwork()

isSerialization

public boolean isSerialization()


Copyright © 2012–2017 Alibaba. All rights reserved.