Class ErrorUtils

  • All Implemented Interfaces:

    
    public class ErrorUtils
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      ErrorUtils()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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"
      	        ]
      	    }
      	}
      	
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ErrorUtils

        ErrorUtils()
    • 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