PricingPlanManager / Client / exceptions / ValidationException
ValidationException¶
- class PricingPlanManager.Client.exceptions.ValidationException¶
The request failed a business rule validation. For example, the specified resource might already be associated with another subscription, or the subscription might not be in the required state for this operation.
Example
try: ... except client.exceptions.ValidationException as e: print(e.response)
- response¶
The parsed error response. All exceptions have a top level
Errorkey that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.Syntax
{ 'message': 'string', 'resourceId': 'string', 'Error': { 'Code': 'string', 'Message': 'string' } }
Structure
(dict) –
The request failed a business rule validation. For example, the specified resource might already be associated with another subscription, or the subscription might not be in the required state for this operation.
message (string) –
resourceId (string) –
The identifier of the resource that failed validation.
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.