Services_Amazon_S3
[ class tree: Services_Amazon_S3 ] [ index: Services_Amazon_S3 ] [ all elements ]

Class: Services_Amazon_S3_Exception

Source Location: /Services_Amazon_S3-0.4.0/Services/Amazon/S3/Exception.php

Class Overview

PEAR_Exception
   |
   --Services_Amazon_S3_Exception

Services_Amazon_S3_Exception is a general exception class that is used for unexpected responses from the server (possibly caused by invalid data supplied by the user) or invalid data supplied by the user.


Author(s):

Version:

  • Release: @release-version@

Copyright:

  • 2008 Peytz & Co. A/S

Variables

Methods


Child classes:

Services_Amazon_S3_NotFoundException
Services_Amazon_S3_NotFoundException is an exception class representing 404 Not Found errors, i.e. when trying to access non-existing buckets and objects.
Services_Amazon_S3_ServerErrorException
Services_Amazon_S3_ServerErrorException is an exception class representing problems with the server or the communication with the server.
Services_Amazon_S3_AccessDeniedException
Services_Amazon_S3_AccessDeniedException is an exception class representing 403 Forbidden errors, i.e. when access to buckets and objects is denied due to insufficient permissions.

Inherited Variables

Inherited Methods


Class Details

[line 66]
Services_Amazon_S3_Exception is a general exception class that is used for unexpected responses from the server (possibly caused by invalid data supplied by the user) or invalid data supplied by the user.

"404 Not Found" errors are represented by the subclass Services_Amazon_S3_NotFoundException.



[ Top ]


Class Variables

$response =

[line 81]

The unexpected HTTP response.

The HTTP status code may indicate the error - see RFC 2616, section 10 for an explanation of the different status codes. The response body may contain an XML document containing an Amazon S3 error code.


Type:   HTTP_Request2_Response


[ Top ]



Method Detail

__construct (Constructor)   [line 105]

Services_Amazon_S3_Exception __construct( string|HTTP_Request $messageOrResponse, [int $code = 0])

Constructor.
  • Access: public

Parameters:

string|HTTP_Request   $messageOrResponse   —  a string (UTF-8) describing the error, or the HTTP_Request2_Response that caused the exception.
int   $code   —  the error code.

[ Top ]

getAmazonErrorCode   [line 151]

string getAmazonErrorCode( )

The Amazon S3 error code.

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:49:38 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.