1 <?php
2
3 namespace PayPal\Exception;
4
5 /**
6 * Class PayPalMissingCredentialException
7 *
8 * @package PayPal\Exception
9 */
10 class PayPalMissingCredentialException extends \Exception
11 {
12
13 /**
14 * Default Constructor
15 *
16 * @param string $message
17 * @param int $code
18 */
19 public function __construct($message = null, $code = 0)
20 {
21 parent::__construct($message, $code);
22 }
23
24 /**
25 * prints error message
26 *
27 * @return string
28 */
29 public function errorMessage()
30 {
31 $errorMsg = 'Error on line ' . $this->getLine() . ' in ' . $this->getFile()
32 . ': <b>' . $this->getMessage() . '</b>';
33
34 return $errorMsg;
35 }
36 }
37