Represents an error interacting with the Amazon Simple Storage Service.
Table of Contents Methods public __construct(string $message, CommandInterface $command[, array<string|int, mixed> $context = [] ][, Exception $previous = null ]) : mixed
Parameters
Exception message
Exception context
Previous exception (if any)
public __toString() : mixed
appendMonitoringEvent()
Append a client-side monitoring event to this object's event list
public appendMonitoringEvent(array<string|int, mixed> $event) : mixed
Parameters
public count() : int
Return valuesint get() public get(mixed $key) : mixed
Parameters
Get the AWS error code.
public getAwsErrorCode() : string|null
Return valuesstring|null —
Returns null if no response was received
getAwsErrorMessage()Get the concise error message if any.
public getAwsErrorMessage() : string|null
Return valuesstring|null getAwsErrorShape()
Get the AWS error shape.
public getAwsErrorShape() : Shape|null
Return valuesShape|null —
Returns null if no response was received
getAwsErrorType()Get the AWS error type.
public getAwsErrorType() : string|null
Return valuesstring|null —
Returns null if no response was received
getAwsRequestId()Get the request ID of the error. This value is only present if a response was received and is not present in the event of a networking error.
public getAwsRequestId() : string|null
Return valuesstring|null —
Returns null if no response was received
getCommand()Get the command that was executed.
public getCommand() : CommandInterface
Return valuesCommandInterface getIterator() public getIterator() : Traversable
Return valuesTraversable getMonitoringEvents()
Get client-side monitoring events attached to this object. Each event is represented as an associative array within the returned array.
public getMonitoringEvents() : array<string|int, mixed>
Return valuesarray<string|int, mixed> getRequest()
Get the sent HTTP request if any.
public getRequest() : RequestInterface|null
Return valuesRequestInterface|null getResponse()
Get the received HTTP response if any.
public getResponse() : ResponseInterface|null
Return valuesResponseInterface|null getResult()
Get the result of the exception if available
public getResult() : ResultInterface|null
Return valuesResultInterface|null getStatusCode()
If available, gets the HTTP status code of the corresponding response
public getStatusCode() : int|null
Return valuesint|null getTransferInfo()
Get all transfer information as an associative array if no $name argument is supplied, or gets a specific transfer statistic if a $name attribute is supplied (e.g., 'retries_attempted').
public getTransferInfo([string $name = null ]) : mixed|null|array<string|int, mixed>
Parameters
Name of the transfer stat to retrieve
public hasKey(mixed $name) : mixed
Parameters
Returns true if this is a connection error.
public isConnectionError() : bool
Return valuesbool isMaxRetriesExceeded()
Returns whether the max number of retries is exceeded.
public isMaxRetriesExceeded() : bool
Return valuesbool offsetExists() public offsetExists(mixed $offset) : bool
Parameters
This method returns a reference to the variable to allow for indirect array modification (e.g., $foo['bar']['baz'] = 'qux').
public & offsetGet( $offset) : mixed|null
Parameters
public offsetSet(mixed $offset, mixed $value) : void
Parameters
public offsetUnset(mixed $offset) : void
Parameters
Prepend a client-side monitoring event to this object's event list
public prependMonitoringEvent(array<string|int, mixed> $event) : mixed
Parameters
public search(mixed $expression) : mixed
Parameters
Sets the flag for max number of retries exceeded.
public setMaxRetriesExceeded() : mixed
setTransferInfo()
Replace the transfer information associated with an exception.
public setTransferInfo(array<string|int, mixed> $info) : mixed
Parameters
public toArray() : mixed
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4