Class 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 of BitcoinRPCException with 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 of BitcoinRPCException with 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.String getResponse()  
      int getResponseCode()  
      java.lang.String getResponseMessage()  
      BitcoinRPCError getRPCError()  
      java.lang.String getRpcMethod()  
      java.lang.String getRpcParams()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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 of BitcoinRPCException with response detail.
        Parameters:
        method - the rpc method called
        params - the parameters sent
        responseCode - the HTTP code received
        responseMessage - the HTTP response message
        response - 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 of BitcoinRPCException with 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