Class ErrorUtils
-
- All Implemented Interfaces:
public class ErrorUtils
-
-
Constructor Summary
Constructors Constructor Description ErrorUtils()
-
Method Summary
Modifier and Type Method Description static ArrayList<String>
parseRxTxConfigError(Response<out Object> response)
Parse an error response returned when RxTxConfig sent to Kaiju is Error 400 Bad Request { "rawHexStream": [ "rawHexStream must be within range [10, 1000] bytes" ], "rawBitStream": [ "rawBitStream must be within range [80, 8000] bits" ] }
static ArrayList
parseJobInputGenerateCaptureError(Response<out Object> response)
Parse an error response returned when JobInputGenerateCapture sent to Kaiju is Error 400 Bad Request { "rxTxConfig": { "rawBitStream": [ "rawBitStream must be within range [80, 8000] bits" ] } }
-
-
Method Detail
-
parseRxTxConfigError
static ArrayList<String> parseRxTxConfigError(Response<out Object> response)
Parse an error response returned when RxTxConfig sent to Kaiju is Error 400 Bad Request
{ "rawHexStream": [ "rawHexStream must be within range [10, 1000] bytes" ], "rawBitStream": [ "rawBitStream must be within range [80, 8000] bits" ] }
- Returns:
list of errors
-
parseJobInputGenerateCaptureError
static ArrayList parseJobInputGenerateCaptureError(Response<out Object> response)
Parse an error response returned when JobInputGenerateCapture sent to Kaiju is Error 400 Bad Request
{ "rxTxConfig": { "rawBitStream": [ "rawBitStream must be within range [80, 8000] bits" ] } }
- Returns:
list of errors
-
-
-
-