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 cException {
21: }
22:
23: /**
24: *
25: * @author marcus.gnass
26: */
27: class PifaDatabaseException extends PifaException {
28: }
29:
30: /**
31: *
32: * @author marcus.gnass
33: */
34: class PifaNotImplementedException extends PifaException {
35: }
36:
37: /**
38: *
39: * @author marcus.gnass
40: */
41: class PifaIllegalStateException extends PifaException {
42: }
43:
44: /**
45: *
46: * @author marcus.gnass
47: */
48: class PifaNotYetStoredException extends PifaException {
49: }
50:
51: /**
52: *
53: * @author marcus.gnass
54: */
55: class PifaValidationException extends PifaException {
56:
57: /**
58: *
59: * @var array
60: */
61: private $_errors = NULL;
62:
63: /**
64: *
65: * @param array $errors
66: */
67: public function __construct(array $errors) {
68: // parent::__construct($message, $code, $previous);
69: $this->_errors = $errors;
70: }
71:
72: /**
73: *
74: * @return multitype:
75: */
76: public function getErrors() {
77: return $this->_errors;
78: }
79: }
80:
81: /**
82: *
83: * @author marcus.gnass
84: */
85: class PifaMailException extends PifaException {
86: }
87: