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

Class: Services_Amazon_SQS_ErrorException

Source Location: /Services_Amazon_SQS-0.3.0/Services/Amazon/SQS/Exceptions.php

Class Overview

PEAR_Exception
   |
   --Services_Amazon_SQS_Exception
      |
      --Services_Amazon_SQS_ErrorException

Exception thrown when one or more errors are returned by Amazon


Author(s):

Copyright:

  • 2008 silverorange

Methods


Inherited Variables

Inherited Methods


Class Details

[line 98]
Exception thrown when one or more errors are returned by Amazon

The Amazon error code may be retrived using Services_Amazon_SQS_ErrorException::getError() and the error message may bre retrieved using Services_Amazon_SQS_ErrorException::getMessage().

See the Amazon SQS Developer's Guide for a full list of error codes.



[ Top ]


Method Detail

__construct (Constructor)   [line 119]

Services_Amazon_SQS_ErrorException __construct( string $message, [integer $code = 0], [string $error = ''])

Creates a new error exception
  • Access: public

Parameters:

string   $message     an error message.
integer   $code     a user-defined error code.
string   $error     the Amazon SQS error code.

[ Top ]

getError   [line 133]

string getError( )

Gets the Amazon SQS error code
  • Return: the Amazon SQS error code.
  • Access: public

[ Top ]


Documentation generated on Tue, 24 Nov 2009 17:00:04 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.