public final class ResponseUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static Chaincode.Response |
newErrorResponse() |
static Chaincode.Response |
newErrorResponse(byte[] payload) |
static Chaincode.Response |
newErrorResponse(java.lang.String message) |
static Chaincode.Response |
newErrorResponse(java.lang.String message,
byte[] payload) |
static Chaincode.Response |
newErrorResponse(java.lang.Throwable throwable) |
static Chaincode.Response |
newSuccessResponse() |
static Chaincode.Response |
newSuccessResponse(byte[] payload) |
static Chaincode.Response |
newSuccessResponse(java.lang.String message) |
static Chaincode.Response |
newSuccessResponse(java.lang.String message,
byte[] payload) |
public static Chaincode.Response newSuccessResponse(java.lang.String message, byte[] payload)
message
- payload
- public static Chaincode.Response newSuccessResponse()
public static Chaincode.Response newSuccessResponse(java.lang.String message)
message
- public static Chaincode.Response newSuccessResponse(byte[] payload)
payload
- public static Chaincode.Response newErrorResponse(java.lang.String message, byte[] payload)
message
- payload
- public static Chaincode.Response newErrorResponse()
public static Chaincode.Response newErrorResponse(java.lang.String message)
message
- public static Chaincode.Response newErrorResponse(byte[] payload)
payload
- public static Chaincode.Response newErrorResponse(java.lang.Throwable throwable)
throwable
-