equal
deleted
inserted
replaced
|
1 <?php |
|
2 /* |
|
3 * This file is part of the WikiTagBundle package. |
|
4 * |
|
5 * (c) IRI <http://www.iri.centrepompidou.fr/> |
|
6 * |
|
7 * For the full copyright and license information, please view the LICENSE |
|
8 * file that was distributed with this source code. |
|
9 */ |
|
10 |
|
11 namespace IRI\Bundle\WikiTagBundle\Services; |
|
12 |
|
13 class WikiTagServiceException extends \Exception |
|
14 { |
|
15 /** |
|
16 * The error code |
|
17 * @var string |
|
18 */ |
|
19 protected $error_code; |
|
20 |
|
21 public function __construct ($message = "", $code = 0, $previous = null, $error_code = "") |
|
22 { |
|
23 parent::__construct($message, $code, $previous); |
|
24 $this->error_code = $error_code; |
|
25 } |
|
26 |
|
27 public function getErrorCode() { |
|
28 return $this->error_code; |
|
29 } |
|
30 } |