2 /* vim: set expandtab tabstop=4 shiftwidth=4: */
3 // +----------------------------------------------------------------------+
5 // +----------------------------------------------------------------------+
6 // | Copyright (c) 2010 Takahiro Ooishi |
7 // +----------------------------------------------------------------------+
8 // | This source file is subject to version 3.0 of the PHP license, |
9 // | that is bundled with this package in the file LICENSE, and is |
10 // | available through the world-wide-web at the following url: |
11 // | http://www.php.net/license/3_0.txt. |
12 // | If you did not receive a copy of the PHP license and are unable to |
13 // | obtain it through the world-wide-web, please send a note to |
14 // | license@php.net so we can mail you a copy immediately. |
15 // +----------------------------------------------------------------------+
16 // | Author: Takahiro Ooishi <taka0125.biz@gmail.com> |
17 // +----------------------------------------------------------------------+
21 abstract class Core_ValidationException extends Exception
23 function __construct($error_value, $message = null, $code = 0)
25 if (is_string($message)) {
26 $message .= '['.@var_export($error_value, true).']';
28 parent::__construct($message, $code);