ParallelComputingService / Client / exceptions / ValidationException
ValidationException#
- class ParallelComputingService.Client.exceptions.ValidationException#
The request isn’t valid.
Examples
Your request contains malformed JSON or unsupported characters.
The scheduler version isn’t supported.
There are networking related errors, such as network validation failure.
AMI type is
CUSTOM
and the launch template doesn’t define the AMI ID, or the AMI type is AL2 and the launch template defines the AMI.
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': 'unknownOperation'|'cannotParse'|'fieldValidationFailed'|'other', 'fieldList': [ { 'name': 'string', 'message': 'string' }, ], 'Error': { 'Code': 'string', 'Message': 'string' } }
Structure
(dict) –
The request isn’t valid.
Examples
Your request contains malformed JSON or unsupported characters.
The scheduler version isn’t supported.
There are networking related errors, such as network validation failure.
AMI type is
CUSTOM
and the launch template doesn’t define the AMI ID, or the AMI type is AL2 and the launch template defines the AMI.
message (string) –
reason (string) –
The specific reason or cause of the validation error.
fieldList (list) –
A list of fields or properties that failed validation.
(dict) –
Stores information about a field in a request that caused an exception.
name (string) –
The name of the exception.
message (string) –
The message body of the exception.
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.