Package org.fisco.bcos.sdk.network
Class NetworkException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.fisco.bcos.sdk.network.NetworkException
- All Implemented Interfaces:
java.io.Serializable
public class NetworkException
extends java.lang.Exception
Network exception
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description static int
CONNECT_FAILED
static int
INIT_CONTEXT_FAILED
static int
SSL_HANDSHAKE_FAILED
-
Constructor Summary
Constructors Constructor Description NetworkException(java.lang.String message)
NetworkException(java.lang.String message, int errorCode)
NetworkException(java.lang.String message, java.lang.Throwable cause)
NetworkException(java.lang.Throwable cause)
-
Method Summary
Modifier and Type Method Description int
getErrorCode()
-
Field Details
-
SSL_HANDSHAKE_FAILED
public static final int SSL_HANDSHAKE_FAILED- See Also:
- Constant Field Values
-
CONNECT_FAILED
public static final int CONNECT_FAILED- See Also:
- Constant Field Values
-
INIT_CONTEXT_FAILED
public static final int INIT_CONTEXT_FAILED- See Also:
- Constant Field Values
-
-
Constructor Details
-
NetworkException
public NetworkException(java.lang.String message, int errorCode) -
NetworkException
public NetworkException(java.lang.String message) -
NetworkException
public NetworkException(java.lang.Throwable cause) -
NetworkException
public NetworkException(java.lang.String message, java.lang.Throwable cause)
-
-
Method Details
-
getErrorCode
public int getErrorCode()
-