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

Class: Payment_PayPal_SOAP_ErrorException

Source Location: /Payment_PayPal_SOAP-0.2.1/Payment/PayPal/SOAP/Exceptions.php

Class Overview

PEAR_Exception
   |
   --Payment_PayPal_SOAP_Exception
      |
      --Payment_PayPal_SOAP_ErrorException

Exception thrown when the SOAP response contains one or more Error elements


Author(s):

Copyright:

  • 2008-2009 silverorange

Methods


Child classes:

Payment_PayPal_SOAP_ExpiredTokenException
Exception thrown when a requests is made with an expired checkout token

Inherited Variables

Inherited Methods


Class Details

[line 352]
Exception thrown when the SOAP response contains one or more Error elements

A detailed error message is present in the message field, the PayPal error code is present in the code field. The error severity is retrieved using the Payment_PayPal_SOAP_ErrorException::getSeverity() method and the full response object may be retrieved using the Payment_PayPal_SOAP_ErrorException::getResponse() method.



[ Top ]


Method Detail

__construct (Constructor)   [line 387]

Payment_PayPal_SOAP_ErrorException __construct( string $message, integer $code, integer $severity, stdClass $response)

Creates a new error exception
  • Access: public

Parameters:

string   $message   —  the exception message.
integer   $code   —  the PayPal error code.
integer   $severity   —  the severity of the PayPal error.
stdClass   $response   —  the response object that contains the PayPal error.

[ Top ]

getResponse   [line 427]

stdClass getResponse( )

Gets the response object containing the PayPal error

Additional information about the error may be present here.

  • Return: the response object containing the PayPal error.
  • See: PaymentPayPal_SOAP_ErrorException::$_response
  • Access: public

[ Top ]

getSeverity   [line 410]

integer getSeverity( )

Gets the severity of the PayPal error

Will be one of the following:

  • Return: the severity level of the PayPal error.
  • See: PaymentPayPal_SOAP_ErrorException::$_severity
  • Access: public

[ Top ]


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