Braket / Client / exceptions / ValidationException
ValidationException¶
- class Braket.Client.exceptions.ValidationException¶
The input request failed to satisfy constraints expected by Amazon Braket.
Example
try: ... except client.exceptions.ValidationException as e: print(e.response)
- response¶
The parsed error response. All exceptions have a top level
Error
key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.Syntax
{ 'message': 'string', 'reason': 'ProgramSetValidationFailed', 'programSetValidationFailures': [ { 'programIndex': 123, 'inputsIndex': 123, 'errors': [ 'string', ] }, ], 'Error': { 'Code': 'string', 'Message': 'string' } }
Structure
(dict) –
The input request failed to satisfy constraints expected by Amazon Braket.
message (string) –
reason (string) –
The reason for validation failure.
programSetValidationFailures (list) –
The validation failures in the program set submitted in the request.
(dict) –
Contains information about validation failures that occurred during the processing of a program set in a quantum task.
programIndex (integer) –
The index of the program within the program set that failed validation.
inputsIndex (integer) –
The index of the input within the program set that failed validation.
errors (list) –
A list of error messages describing the validation failures that occurred.
(string) –
Error (dict) – Normalized access to common exception attributes.
Code (string) – An identifier specifying the exception type.
Message (string) – A descriptive message explaining why the exception occured.