Class LightsailException
- Exception
- RuntimeException
- Aws\Exception\AwsException implements Aws\MonitoringEventsInterface, Aws\ResponseContainerInterface, ArrayAccess uses Aws\HasDataTrait, Aws\HasMonitoringEventsTrait
- Aws\Lightsail\Exception\LightsailException
- Namespace: Aws\Lightsail\Exception
- Located at Lightsail/Exception/LightsailException.php
Represents an error interacting with the Amazon Lightsail 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
[ 'code' => '<string>', 'docs' => '<string>', 'message' => '<string>', 'tip' => '<string>', ]
Description
Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
Members
- code
-
- Type: string
- docs
-
- Type: string
- message
-
- Type: string
- tip
-
- Type: string
AccountSetupInProgressException
[ 'code' => '<string>', 'docs' => '<string>', 'message' => '<string>', 'tip' => '<string>', ]
Description
Lightsail throws this exception when an account is still in the setup in progress state.
Members
- code
-
- Type: string
- docs
-
- Type: string
- message
-
- Type: string
- tip
-
- Type: string
InvalidInputException
[ 'code' => '<string>', 'docs' => '<string>', 'message' => '<string>', 'tip' => '<string>', ]
Description
Lightsail throws this exception when user input does not conform to the validation rules of an input field.
Domain and distribution APIs are only available in the N. Virginia (us-east-1
) Amazon Web Services Region. Please set your Amazon Web Services Region configuration to us-east-1
to create, view, or edit these resources.
Members
- code
-
- Type: string
- docs
-
- Type: string
- message
-
- Type: string
- tip
-
- Type: string
NotFoundException
[ 'code' => '<string>', 'docs' => '<string>', 'message' => '<string>', 'tip' => '<string>', ]
Description
Lightsail throws this exception when it cannot find a resource.
Members
- code
-
- Type: string
- docs
-
- Type: string
- message
-
- Type: string
- tip
-
- Type: string
OperationFailureException
[ 'code' => '<string>', 'docs' => '<string>', 'message' => '<string>', 'tip' => '<string>', ]
Description
Lightsail throws this exception when an operation fails to execute.
Members
- code
-
- Type: string
- docs
-
- Type: string
- message
-
- Type: string
- tip
-
- Type: string
ServiceException
[ 'code' => '<string>', 'docs' => '<string>', 'message' => '<string>', 'tip' => '<string>', ]
Description
A general service exception.
Members
- code
-
- Type: string
- docs
-
- Type: string
- message
-
- Type: string
- tip
-
- Type: string
UnauthenticatedException
[ 'code' => '<string>', 'docs' => '<string>', 'message' => '<string>', 'tip' => '<string>', ]
Description
Lightsail throws this exception when the user has not been authenticated.
Members
- code
-
- Type: string
- docs
-
- Type: string
- message
-
- Type: string
- tip
-
- Type: string