1: <?php
2:
3: /**
4: *
5: * @package Plugin
6: * @subpackage FormAssistant
7: * @version SVN Revision $Rev:$
8: * @author marcus.gnass
9: * @copyright four for business AG
10: * @link http://www.4fb.de
11: */
12:
13: // assert CONTENIDO framework
14: defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
15:
16: /**
17: *
18: * @author marcus.gnass
19: */
20: class PifaException extends Exception {
21: }
22:
23: /**
24: *
25: * @author marcus.gnass
26: */
27: class PifaDatabaseException extends PifaException {
28: }
29:
30: /**
31: *
32: * @todo rename to PifaNotImplementedException
33: * @author marcus.gnass
34: */
35: class NotImplementedException extends PifaException {
36: }
37:
38: /**
39: *
40: * @todo rename to PifaIllegalStateException
41: * @author marcus.gnass
42: */
43: class IllegalStateException extends PifaException {
44: }
45:
46: /**
47: *
48: * @author marcus.gnass
49: */
50: class PifaNotYetStoredException extends PifaException {
51: }
52:
53: /**
54: *
55: * @author marcus.gnass
56: */
57: class PifaValidationException extends PifaException {
58:
59: /**
60: *
61: * @var array
62: */
63: private $_errors = NULL;
64:
65: /**
66: *
67: * @param array $errors
68: */
69: public function __construct(array $errors) {
70: // parent::__construct($message, $code, $previous);
71: $this->_errors = $errors;
72: }
73:
74: /**
75: *
76: * @return multitype:
77: */
78: public function getErrors() {
79: return $this->_errors;
80: }
81: }
82:
83: /**
84: *
85: * @author marcus.gnass
86: */
87: class PifaMailException extends PifaException {
88: }
89: