Class ErrorResponse

  • All Implemented Interfaces:
    org.xipki.util.cbor.CborEncodable

    public class ErrorResponse
    extends SdkResponse
    Error response.
    Since:
    6.0.0
    Author:
    Lijun Liao (xipki)
    • Constructor Detail

      • ErrorResponse

        public ErrorResponse​(String transactionId,
                             org.xipki.pki.ErrorCode code,
                             String message)
    • Method Detail

      • getCode

        public org.xipki.pki.ErrorCode getCode()
      • getMessage

        public String getMessage()
      • getTransactionId

        public String getTransactionId()
      • encode0

        protected void encode0​(org.xipki.util.cbor.CborEncoder encoder)
                        throws IOException,
                               org.xipki.util.exception.EncodeException
        Specified by:
        encode0 in class SdkEncodable
        Throws:
        IOException
        org.xipki.util.exception.EncodeException
      • decode

        public static ErrorResponse decode​(byte[] encoded)
                                    throws org.xipki.util.exception.DecodeException
        Throws:
        org.xipki.util.exception.DecodeException