mirror of
https://github.com/Karaka-Management/Resources.git
synced 2026-01-11 05:18:40 +00:00
37 lines
690 B
PHP
37 lines
690 B
PHP
<?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;
|
|
}
|
|
}
|