This is an old revision of the document!


The `GetErrorTable` method returns a list of `ErrorData` objects representing the current errors in the system. Each `ErrorData` object contains information about the error type, device code, error message, and any additional information.

Example Usage

Below are examples of the JSON returned by the GetErrorTable method for different error types.

Example 1: No Error

[]

Example 2: Camera Connection Error

[
   {
      "ErrorType":1,
      "DeviceCode":1,
      "Message":"Camera connection error: Device 1",
      "Additional":[
      ]
   }
]

Example 3: Camera Ping Error

[
   {
      "ErrorType":2,
      "DeviceCode":102,
      "Message":"Camera ping error: Device 102",
      "Additional":[
         
      ]
   }
]

Example 4: Camera Missing

[
   {
      "ErrorType":3,
      "DeviceCode":103,
      "Message":"Camera missing: Device 103",
      "Additional":[
         
      ]
   }
]

Example 5: General Configuration Corrupted

[
   {
      "ErrorType":4,
      "DeviceCode":104,
      "Message":"Configuration corrupted: Device 104",
      "Additional":[
         
      ]
   }
]

Example 6: Configuration Missing

[
   {
      "ErrorType":5,
      "DeviceCode":105,
      "Message":"Configuration missing: Device 105",
      "Additional":[
         
      ]
   }
]

Example 7: Halcon License Missing

[
   {
      "ErrorType":6,
      "DeviceCode":106,
      "Message":"Halcon license missing: Device 106",
      "Additional":[
         
      ]
   }
]

Example 8: Free Space Missing

[
   {
      "ErrorType":7,
      "DeviceCode":107,
      "Message":"Free space missing: Device 107",
      "Additional":[
         "5000000000"
      ]
   }
]

Example 9: Multiple Errors

[
   {
      "ErrorType":1,
      "DeviceCode":101,
      "Message":"Camera connection error: Device 101",
      "Additional":[
         
      ]
   },
   {
      "ErrorType":2,
      "DeviceCode":102,
      "Message":"Camera ping error: Device 102",
      "Additional":[
         
      ]
   },
   {
      "ErrorType":7,
      "DeviceCode":107,
      "Message":"Free space missing: Device 107",
      "Additional":[
         "5000000000"
      ]
   }
]
  • soplarpet/error_table.1726482850.txt.gz
  • Last modified: 2024/09/16 10:34
  • by superuser