Package wf.bitcoin.javabitcoindrpcclient
Class BitcoinRPCException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- wf.bitcoin.javabitcoindrpcclient.GenericRpcException
-
- wf.bitcoin.javabitcoindrpcclient.BitcoinRPCException
-
- All Implemented Interfaces:
java.io.Serializable
public class BitcoinRPCException extends GenericRpcException
- Author:
- Mikhail Yevchenko m.ṥῥẚɱ.ѓѐḿởύḙ@azazar.com, Alessandro Polverini
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BitcoinRPCException(java.lang.String msg)Constructs an instance ofBitcoinRPCExceptionwith the specified detail message.BitcoinRPCException(java.lang.String method, java.lang.String params, int responseCode, java.lang.String responseMessage, java.lang.String response)Creates a new instance ofBitcoinRPCExceptionwith response detail.BitcoinRPCException(java.lang.String method, java.lang.String params, java.lang.Throwable cause)BitcoinRPCException(java.lang.String message, java.lang.Throwable cause)BitcoinRPCException(BitcoinRPCError error)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetResponse()intgetResponseCode()java.lang.StringgetResponseMessage()BitcoinRPCErrorgetRPCError()java.lang.StringgetRpcMethod()java.lang.StringgetRpcParams()
-
-
-
Constructor Detail
-
BitcoinRPCException
public BitcoinRPCException(java.lang.String method, java.lang.String params, int responseCode, java.lang.String responseMessage, java.lang.String response)Creates a new instance ofBitcoinRPCExceptionwith response detail.- Parameters:
method- the rpc method calledparams- the parameters sentresponseCode- the HTTP code receivedresponseMessage- the HTTP response messageresponse- the error stream received
-
BitcoinRPCException
public BitcoinRPCException(java.lang.String method, java.lang.String params, java.lang.Throwable cause)
-
BitcoinRPCException
public BitcoinRPCException(java.lang.String msg)
Constructs an instance ofBitcoinRPCExceptionwith the specified detail message.- Parameters:
msg- the detail message.
-
BitcoinRPCException
public BitcoinRPCException(BitcoinRPCError error)
-
BitcoinRPCException
public BitcoinRPCException(java.lang.String message, java.lang.Throwable cause)
-
-
Method Detail
-
getResponseCode
public int getResponseCode()
-
getRpcMethod
public java.lang.String getRpcMethod()
-
getRpcParams
public java.lang.String getRpcParams()
-
getResponseMessage
public java.lang.String getResponseMessage()
- Returns:
- the HTTP response message
-
getResponse
public java.lang.String getResponse()
- Returns:
- response message from bitcored
-
getRPCError
public BitcoinRPCError getRPCError()
- Returns:
- response message from bitcored
-
-