* @license PHP License * @package WB * @subpackage base */ /** * exception: file * * @version 0.1.0 * @package WB * @subpackage base */ class WBException_Form extends WBException { /** * List of validation errors * @var array */ private $validationErrors = array(); /** * constructor * * @param string $msg exception message * @param int $code integer * @param string $clazz name of calling class * @see WBException */ public function __construct($msg, $code = 0, $clazz = '') { if (is_array($msg) && isset($msg['validationerrors'])) { $this->validationErrors = $msg['validationerrors']; } parent::__construct($msg, $code, $class); } /** * Get list of validation errors * * @return array */ public function getValidationErrors() { return $this->validationErrors; } }