recreate project

This commit is contained in:
root
2026-02-10 22:11:06 -05:00
commit 663c0cdbda
10149 changed files with 1379710 additions and 0 deletions
@@ -0,0 +1,23 @@
<?php
namespace PayPal\Exception;
/**
* Class PayPalConfigurationException
*
* @package PayPal\Exception
*/
class PayPalConfigurationException extends \Exception
{
/**
* Default Constructor
*
* @param string|null $message
* @param int $code
*/
public function __construct($message = null, $code = 0)
{
parent::__construct($message, $code);
}
}
@@ -0,0 +1,68 @@
<?php
namespace PayPal\Exception;
/**
* Class PayPalConnectionException
*
* @package PayPal\Exception
*/
class PayPalConnectionException extends \Exception
{
/**
* The url that was being connected to when the exception occured
*
* @var string
*/
private $url;
/**
* Any response data that was returned by the server
*
* @var string
*/
private $data;
/**
* Default Constructor
*
* @param string $url
* @param string $message
* @param int $code
*/
public function __construct($url, $message, $code = 0)
{
parent::__construct($message, $code);
$this->url = $url;
}
/**
* Sets Data
*
* @param $data
*/
public function setData($data)
{
$this->data = $data;
}
/**
* Gets Data
*
* @return string
*/
public function getData()
{
return $this->data;
}
/**
* Gets Url
*
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
@@ -0,0 +1,36 @@
<?php
namespace PayPal\Exception;
/**
* Class PayPalInvalidCredentialException
*
* @package PayPal\Exception
*/
class PayPalInvalidCredentialException extends \Exception
{
/**
* Default Constructor
*
* @param string|null $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;
}
}
@@ -0,0 +1,37 @@
<?php
namespace PayPal\Exception;
/**
* Class PayPalMissingCredentialException
*
* @package PayPal\Exception
*/
class PayPalMissingCredentialException 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;
}
}