6 class ORMException
extends Exception
{
7 private $table = false;
8 private $field = false;
11 * initialization of the ORMExcetpion
13 * @param $msg message to print
14 * @param $table related table, or false
15 * @param $field related field, or false
17 public function __construct( $msg, $table = false, $field = false ) {
19 $this->table
= $table;
20 $this->field
= $field;
22 $msg .= "Table: ".$table;
24 $msg .= "Field: ".$field;
25 parent
::__construct($msg);
29 * Get the table name related to the exception, or false
30 * @return table name, or false
32 public function getTable() {
37 * Get the field name related to the exception, or false
38 * @return field name, or false
40 public function getField() {