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.2.0/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: 0.2.0

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 64]
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

$request =

[line 77]

The HTTP request that caused the unexpected 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_Request


[ Top ]



Method Detail

__construct (Constructor)   [line 95]

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

Constructor.
  • Access: public

Parameters:

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

[ Top ]

getAmazonErrorCode   [line 137]

string getAmazonErrorCode( )

The Amazon S3 error code.

[ Top ]


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