Class Inspector2Exception
- Exception
-
RuntimeException
-
Aws\Exception\AwsException implements Aws\MonitoringEventsInterface, Aws\ResponseContainerInterface, ArrayAccess uses Aws\HasDataTrait, Aws\HasMonitoringEventsTrait
-
Aws\Inspector2\Exception\Inspector2Exception
- Namespace: Aws\Inspector2\Exception
- Located at Inspector2/Exception/Inspector2Exception.php
Represents an error interacting with the Inspector2 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 do not have sufficient access to perform this action.
Members
- message
-
- Required: Yes
- Type: string
BadRequestException
[ 'message' => '<string>', ]
Description
One or more tags submitted as part of the request is not valid.
Members
- message
-
- Required: Yes
- Type: string
ConflictException
[ 'message' => '<string>', 'resourceId' => '<string>', 'resourceType' => '<string>', ]
Description
A conflict occurred.
Members
- message
-
- Required: Yes
- Type: string
- resourceId
-
- Required: Yes
- Type: string
The ID of the conflicting resource.
- resourceType
-
- Required: Yes
- Type: string
The type of the conflicting resource.
InternalServerException
[ 'message' => '<string>', 'retryAfterSeconds' => <integer>, ]
Description
The request has failed due to an internal failure of the Amazon Inspector service.
Members
- message
-
- Required: Yes
- Type: string
- retryAfterSeconds
-
- Type: int
The number of seconds to wait before retrying the request.
ResourceNotFoundException
[ 'message' => '<string>', ]
Description
The operation tried to access an invalid resource. Make sure the resource is specified correctly.
Members
- message
-
- Required: Yes
- Type: string
ServiceQuotaExceededException
[ 'message' => '<string>', 'resourceId' => '<string>', ]
Description
You have exceeded your service quota. To perform the requested action, remove some of the relevant resources, or use Service Quotas to request a service quota increase.
Members
- message
-
- Required: Yes
- Type: string
- resourceId
-
- Required: Yes
- Type: string
The ID of the resource that exceeds a service quota.
ThrottlingException
[ 'message' => '<string>', 'retryAfterSeconds' => <integer>, ]
Description
The limit on the number of requests per second was exceeded.
Members
- message
-
- Required: Yes
- Type: string
- retryAfterSeconds
-
- Type: int
The number of seconds to wait before retrying the request.
ValidationException
[ 'fields' => [ [ 'message' => '<string>', 'name' => '<string>', ], // ... ], 'message' => '<string>', 'reason' => 'CANNOT_PARSE|FIELD_VALIDATION_FAILED|OTHER', ]
Description
The request has failed validation due to missing required fields or having invalid inputs.
Members
- fields
-
- Type: Array of ValidationExceptionField structures
The fields that failed validation.
- message
-
- Required: Yes
- Type: string
- reason
-
- Required: Yes
- Type: string
The reason for the validation failure.