Class CostOptimizationHubException
- Exception
- RuntimeException
- Aws\Exception\AwsException implements Aws\MonitoringEventsInterface, Aws\ResponseContainerInterface, ArrayAccess uses Aws\HasDataTrait, Aws\HasMonitoringEventsTrait
- Aws\CostOptimizationHub\Exception\CostOptimizationHubException
- Namespace: Aws\CostOptimizationHub\Exception
- Located at CostOptimizationHub/Exception/CostOptimizationHubException.php
Represents an error interacting with the Cost Optimization Hub 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
The following are the known exception codes and corresponding data shapes that
this service may return as part of an error response.
AccessDeniedException
[ 'message' => '<string>', ]
Description
You are not authorized to use this operation with the given parameters.
Members
- message
-
- Required: Yes
- Type: string
InternalServerException
[ 'message' => '<string>', ]
Description
An error on the server occurred during the processing of your request. Try again later.
Members
- message
-
- Required: Yes
- Type: string
ResourceNotFoundException
[ 'message' => '<string>', 'resourceId' => '<string>', ]
Description
The specified Amazon Resource Name (ARN) in the request doesn't exist.
Members
- message
-
- Required: Yes
- Type: string
- resourceId
-
- Required: Yes
- Type: string
The identifier of the resource that was not found.
ThrottlingException
[ 'message' => '<string>', ]
Description
The request was denied due to request throttling.
Members
- message
-
- Type: string
ValidationException
[ 'fields' => [ [ 'fieldName' => '<string>', 'message' => '<string>', ], // ... ], 'message' => '<string>', 'reason' => 'FieldValidationFailed|Other', ]
Description
The input fails to satisfy the constraints specified by an Amazon Web Services service.
Members
- fields
-
- Type: Array of ValidationExceptionDetail structures
The list of fields that are invalid.
- message
-
- Required: Yes
- Type: string
- reason
-
- Type: string
The reason for the validation exception.