forked from LiveCarta/PayPal-PHP-SDK
- Copied files required for Rest API SDK - Removed PPApiContext and directly connected APIContext with PPConfigManager - Removed duplicate data storage of configuration and credentials. - Code Style Fixes - Remove build.xml file as it is not required anymore - Updated the samples - Updated the documentations
37 lines
682 B
PHP
37 lines
682 B
PHP
<?php
|
|
|
|
namespace PayPal\Exception;
|
|
|
|
/**
|
|
* Class PPMissingCredentialException
|
|
*
|
|
* @package PayPal\Exception
|
|
*/
|
|
class PPMissingCredentialException extends \Exception
|
|
{
|
|
|
|
/**
|
|
* Default Constructor
|
|
*
|
|
* @param string $message
|
|
* @param int $code
|
|
*/
|
|
public function __construct($message = null, $code = 0)
|
|
{
|
|
parent::__construct($message, $code);
|
|
}
|
|
|
|
/**
|
|
* prints error message
|
|
*
|
|
* @return string
|
|
*/
|
|
public function errorMessage()
|
|
{
|
|
$errorMsg = 'Error on line ' . $this->getLine() . ' in ' . $this->getFile()
|
|
. ': <b>' . $this->getMessage() . '</b>';
|
|
|
|
return $errorMsg;
|
|
}
|
|
|
|
} |