C# Class PayPal.PayPalException

Represents an error that occurred in the PayPal SDK.
Inheritance: System.Exception
Mostra file Open project: paypal/PayPal-NET-SDK Class Usage Examples

Public Methods

Method Description
PayPalException ( ) : PayPal.Log

Initializes a new PayPalException with no exception details set.

PayPalException ( string message ) : PayPal.Log

Represents errors that occur during application execution

PayPalException ( string message, System cause ) : PayPal.Log

Initializes a new PayPalException and sets the exception message and cause.

Protected Methods

Method Description
LogDefaultMessage ( string message ) : void

Helper method for logging a message when this object is created. Derived classes can override this to log more specific exception information without cluttering up the logfile.

LogMessage ( string message ) : void

Helper method that logs a message related to this exception to the logfile.

LogMessage ( string message, System ex ) : void

Helper method that logs a message related to this exception to the logfile.

PayPalException ( PayPalException ex ) : PayPal.Log

Copy constructor provided by convenience for derived classes.

Method Details

LogDefaultMessage() protected method

Helper method for logging a message when this object is created. Derived classes can override this to log more specific exception information without cluttering up the logfile.
protected LogDefaultMessage ( string message ) : void
message string The message to be logged.
return void

LogMessage() protected method

Helper method that logs a message related to this exception to the logfile.
protected LogMessage ( string message ) : void
message string The exception message to be logged.
return void

LogMessage() protected method

Helper method that logs a message related to this exception to the logfile.
protected LogMessage ( string message, System ex ) : void
message string The exception message to be logged.
ex System Optional System.Exception object to include in the log message.
return void

PayPalException() public method

Initializes a new PayPalException with no exception details set.
public PayPalException ( ) : PayPal.Log
return PayPal.Log

PayPalException() protected method

Copy constructor provided by convenience for derived classes.
protected PayPalException ( PayPalException ex ) : PayPal.Log
ex PayPalException The original exception to copy information from.
return PayPal.Log

PayPalException() public method

Represents errors that occur during application execution
public PayPalException ( string message ) : PayPal.Log
message string The message that describes the error
return PayPal.Log

PayPalException() public method

Initializes a new PayPalException and sets the exception message and cause.
public PayPalException ( string message, System cause ) : PayPal.Log
message string The message that describes the error
cause System The exception that is the cause of the current exception
return PayPal.Log