Class GreengrassV2Exception
- Exception
- RuntimeException
- Aws\Exception\AwsException implements Aws\MonitoringEventsInterface, Aws\ResponseContainerInterface, ArrayAccess uses Aws\HasDataTrait, Aws\HasMonitoringEventsTrait
- Aws\GreengrassV2\Exception\GreengrassV2Exception
- Namespace: Aws\GreengrassV2\Exception
- Located at GreengrassV2/Exception/GreengrassV2Exception.php
Represents an error interacting with the AWS IoT Greengrass V2 service.
Methods Summary
Methods inherited from Aws\Exception\AwsException
__construct()
,
__toString()
,
get()
,
getAwsErrorCode()
,
getAwsErrorMessage()
,
getAwsErrorShape()
,
getAwsErrorType()
,
getAwsRequestId()
,
getCommand()
,
getRequest()
,
getResponse()
,
getResult()
,
getStatusCode()
,
getTransferInfo()
,
hasKey()
,
isConnectionError()
,
isMaxRetriesExceeded()
,
search()
,
setMaxRetriesExceeded()
,
setTransferInfo()
Methods inherited from Exception
__wakeup()
,
getCode()
,
getFile()
,
getLine()
,
getMessage()
,
getPrevious()
,
getTrace()
,
getTraceAsString()
Methods inherited from ArrayAccess
offsetExists()
,
offsetGet()
,
offsetSet()
,
offsetUnset()
Methods inherited from Aws\MonitoringEventsInterface
Methods used from Aws\HasDataTrait
Methods used from Aws\HasMonitoringEventsTrait
Expected Exception Codes
AccessDeniedException
[ 'message' => '<string>', ]
Description
You don't have permission to perform the action.
Members
- message
-
- Required: Yes
- Type: string
ConflictException
[ 'message' => '<string>', 'resourceId' => '<string>', 'resourceType' => '<string>', ]
Description
Your request has conflicting operations. This can occur if you're trying to perform more than one operation on the same resource at the same time.
Members
- message
-
- Required: Yes
- Type: string
- resourceId
-
- Required: Yes
- Type: string
The ID of the resource that conflicts with the request.
- resourceType
-
- Required: Yes
- Type: string
The type of the resource that conflicts with the request.
InternalServerException
[ 'message' => '<string>', 'retryAfterSeconds' => <integer>, ]
Description
IoT Greengrass can't process your request right now. Try again later.
Members
- message
-
- Required: Yes
- Type: string
- retryAfterSeconds
-
- Type: int
The amount of time to wait before you retry the request.
RequestAlreadyInProgressException
[ 'message' => '<string>', ]
Description
The request is already in progress. This exception occurs when you use a client token for multiple requests while IoT Greengrass is still processing an earlier request that uses the same client token.
Members
- message
-
- Required: Yes
- Type: string
ResourceNotFoundException
[ 'message' => '<string>', 'resourceId' => '<string>', 'resourceType' => '<string>', ]
Description
The requested resource can't be found.
Members
- message
-
- Required: Yes
- Type: string
- resourceId
-
- Required: Yes
- Type: string
The ID of the resource that isn't found.
- resourceType
-
- Required: Yes
- Type: string
The type of the resource that isn't found.
ServiceQuotaExceededException
[ 'message' => '<string>', 'quotaCode' => '<string>', 'resourceId' => '<string>', 'resourceType' => '<string>', 'serviceCode' => '<string>', ]
Description
Your request exceeds a service quota. For example, you might have the maximum number of components that you can create.
Members
- message
-
- Required: Yes
- Type: string
- quotaCode
-
- Required: Yes
- Type: string
The code for the quota in Service Quotas.
- resourceId
-
- Type: string
The ID of the resource that exceeds the service quota.
- resourceType
-
- Type: string
The type of the resource that exceeds the service quota.
- serviceCode
-
- Required: Yes
- Type: string
The code for the service in Service Quotas.
ThrottlingException
[ 'message' => '<string>', 'quotaCode' => '<string>', 'retryAfterSeconds' => <integer>, 'serviceCode' => '<string>', ]
Description
Your request exceeded a request rate quota. For example, you might have exceeded the amount of times that you can retrieve device or deployment status per second.
Members
- message
-
- Required: Yes
- Type: string
- quotaCode
-
- Type: string
The code for the quota in Service Quotas.
- retryAfterSeconds
-
- Type: int
The amount of time to wait before you retry the request.
- serviceCode
-
- Type: string
The code for the service in Service Quotas.
ValidationException
[ 'fields' => [ [ 'message' => '<string>', 'name' => '<string>', ], // ... ], 'message' => '<string>', 'reason' => 'UNKNOWN_OPERATION|CANNOT_PARSE|FIELD_VALIDATION_FAILED|OTHER', ]
Description
The request isn't valid. This can occur if your request contains malformed JSON or unsupported characters.
Members
- fields
-
- Type: Array of ValidationExceptionField structures
The list of fields that failed to validate.
- message
-
- Required: Yes
- Type: string
- reason
-
- Type: string
The reason for the validation exception.