diff -r 10be6b9e55e7 -r 774ba82dca59 Services/WikiTagServiceException.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Services/WikiTagServiceException.php Wed Dec 14 23:28:57 2011 +0100 @@ -0,0 +1,30 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace IRI\Bundle\WikiTagBundle\Services; + +class WikiTagServiceException extends \Exception +{ + /** + * The error code + * @var string + */ + protected $error_code; + + public function __construct ($message = "", $code = 0, $previous = null, $error_code = "") + { + parent::__construct($message, $code, $previous); + $this->error_code = $error_code; + } + + public function getErrorCode() { + return $this->error_code; + } +} \ No newline at end of file