Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Commit 3d2a5d1

Browse files
authored
Document modeled exception data in AwsException
Merge pull request #62 from howardlopez/aws_exception_data
2 parents a25e7bc + 8261835 commit 3d2a5d1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

doc_source/getting-started_basic-usage.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,11 @@ The following example uses the ``Aws\S3\S3Client``. If there is an
288288
error, the exception thrown will be of the type ``Aws\S3\Exception\S3Exception``.
289289
All service-specific exceptions that the SDK throws extend from the
290290
``Aws\Exception\AwsException`` class. This class contains useful information
291-
about the failure, including the request-id, error code, and error type.
292-
291+
about the failure, including the request-id, error code, and error type. Note
292+
for some services which support it, response data is coerced into an
293+
associative array structure (similar to ``Aws\Result`` objects), which can be
294+
accessed like a normal PHP associative array. The ``toArray()`` method will
295+
return any such data, if it exists.
293296

294297
**Imports**
295298

0 commit comments

Comments
 (0)