UserException.php 833 Bytes
Newer Older
1
2
3
4
5
6
7
8
<?php
/**
 * Created by PhpStorm.
 * User: crose
 * Date: 1/1/16
 * Time: 12:43 PM
 */

9

10
namespace qfq;
11

12
require_once(__DIR__ . '/AbstractException.php');
13

14
15
16
17
18
19
20
/**
 * Class UserException
 *
 * Thrown by Form or FormElement on User errors
 *
 * @package qfq\exceptions
 */
21
class UserException extends AbstractException {
22
23
24
25
26

    /*
    * @return string HTML formatted error string
    */
    public function formatMessage() {
27

28
29
30
31
        $this->messageArray['Type'] = 'User Exception';
        $this->messageArray['Form'] = $this->store->getVar(SYSTEM_FORM, STORE_SYSTEM);
        $this->messageArray['Form Element'] = $this->store->getVar(SYSTEM_FORM_ELEMENT, STORE_SYSTEM);
        $this->messageArray['Form Element Column'] = $this->store->getVar(SYSTEM_FORM_ELEMENT_COLUMN, STORE_SYSTEM);
32

33
        return parent::formatException();
34
    }
35
}