Package org.xipki.ca.sdk
Class ErrorResponse
- java.lang.Object
-
- org.xipki.ca.sdk.SdkEncodable
-
- org.xipki.ca.sdk.SdkResponse
-
- org.xipki.ca.sdk.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 Summary
Constructors Constructor Description ErrorResponse(String transactionId, org.xipki.pki.ErrorCode code, String message)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ErrorResponsedecode(byte[] encoded)protected voidencode0(org.xipki.util.cbor.CborEncoder encoder)org.xipki.pki.ErrorCodegetCode()StringgetMessage()StringgetTransactionId()StringtoString()-
Methods inherited from class org.xipki.ca.sdk.SdkEncodable
assertArrayStart, buildDecodeErrMessage, encode, encode
-
-
-
-
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:
encode0in classSdkEncodable- Throws:
IOExceptionorg.xipki.util.exception.EncodeException
-
decode
public static ErrorResponse decode(byte[] encoded) throws org.xipki.util.exception.DecodeException
- Throws:
org.xipki.util.exception.DecodeException
-
-