Exemplo n.º 1
0
 /**
  * Initialize a new exception
  */
 public function __construct($key, $state, $driver, $msg, $sql)
 {
     $this->key = $key;
     $this->state = $state;
     $this->driver = $driver;
     $this->msg = $msg;
     $this->sql = $sql;
     parent::__construct($this->msg);
 }
Exemplo n.º 2
0
 public function __construct($file, $errors = null)
 {
     $details = null;
     if (is_array($errors)) {
         foreach ($errors as $err) {
             $details .= $this->getError($err);
         }
         libxml_clear_errors();
     }
     parent::__construct('Unable to validate xml file : ' . $file . $details);
 }
 public function __construct(pdoMap_Mapping_Entity $entity, pdoMap_Mapping_Metadata_Field $meta)
 {
     parent::__construct('Could not validate entity ' . $entity->getType() . ' because field ' . $meta->bind . ' cant be null !');
 }
 public function __construct()
 {
     parent::__construct('Unable to read configuration / you should initialize first.');
 }
Exemplo n.º 5
0
 public function __construct($name, pdoMap_Mapping_Metadata_Table $table)
 {
     parent::__construct('Could not find ' . $name . ' on adapter ' . $table->getType());
 }
Exemplo n.º 6
0
 public function __construct(pdoMap_Mapping_Metadata_Field $field, $file, $message)
 {
     parent::__construct('The file ' . $file . ' was not parsed. ' . 'Unable to read field \'' . $field->bind . '\' definition : ' . $message);
 }
Exemplo n.º 7
0
 /**
  * Raise an error
  */
 public function __construct(pdoMap_Mapping_Metadata_Field &$field, $type)
 {
     parent::__construct('Could not convert ' . $field->bind . '(' . $field->type . ') to ' . $type . ' !');
 }
 public function __construct($key)
 {
     parent::__construct('Unable to find connection key \'' . $key . '\' !');
 }
 public function __construct($structure)
 {
     parent::__construct('Unable to find primary key on ' . $structure->bind . ' mapping !');
 }
Exemplo n.º 10
0
 public function __construct($file)
 {
     parent::__construct('Unable to load xml file : ' . $file);
 }
Exemplo n.º 11
0
 public function __construct($key)
 {
     parent::__construct('Could not load or read the requested key : ' . $key);
 }
Exemplo n.º 12
0
 public function __construct($bind, $file)
 {
     parent::__construct('Unable to find mapping file for type ' . $bind . ' - look at ' . $file);
 }
Exemplo n.º 13
0
 public function __construct($transaction, pdoMap_Mapping_Entity $entity)
 {
     parent::__construct('Unable to execute ' . $transaction . ' transaction on entity ' . $entity->getType() . ' with id ' . $entity->getPk());
 }
 public function __construct(pdoMap_Mapping_Entity $entity, pdoMap_Mapping_Metadata_Field $meta)
 {
     parent::__construct('Could not validate entity ' . $entity->getType() . ' because value of field ' . $meta->bind . ' is not correctly typed (expecting ' . $meta->type . ')  ! Field value : ' . $entity->getValue($meta->bind));
 }
Exemplo n.º 15
0
 /**
  * Raise an error
  */
 public function __construct(pdoMap_Mapping_Metadata_Field &$field, $key)
 {
     parent::__construct('Field ' . $field->bind . '(' . $field->type . ') expects undefined ' . $key . ' option !');
 }
Exemplo n.º 16
0
 /**
  * Raise an error
  */
 public function __construct(pdoMap_Mapping_Metadata_Field &$field)
 {
     parent::__construct('You are not allowed to set ' . $field->bind . '(' . $field->type . ') value !');
 }
Exemplo n.º 17
0
 /**
  * Raise an error
  */
 public function __construct(pdoMap_Mapping_Metadata_Field &$field, $value)
 {
     parent::__construct('Field ' . $field->bind . '(' . $field->type . ') does not expects value ' . $value . ' !');
 }
Exemplo n.º 18
0
 public function __construct($type)
 {
     parent::__construct('Unable to find entity mapping for ' . $type . ' structure. You should verify syntax and mapping configuration file.');
 }
Exemplo n.º 19
0
 public function __construct($key)
 {
     parent::__construct('Unable to find cache key ' . $key);
 }
Exemplo n.º 20
0
 /**
  * Raise an error
  */
 public function __construct(pdoMap_Mapping_Metadata_Field &$field, $key)
 {
     parent::__construct('Field ' . $field->bind . '(' . $field->type . ') contains a wrong ' . $key . ' definition !');
 }
Exemplo n.º 21
0
 public function __construct($service)
 {
     parent::__construct('Could not find service ' . $service . ' implementation, maybe you forget an include.');
 }
Exemplo n.º 22
0
 public function __construct(pdoMap_Mapping_Entity $entity)
 {
     parent::__construct('Unable to validate entity ' . $entity->getType() . ' with id ' . $entity->getPk());
 }
 public function __construct($service, $interface, $initial, $duplicate)
 {
     parent::__construct('Duplicate implementation for ' . $service . ' adapter : ' . get_class($initial) . ' and ' . $duplicate . ' both implements ' . $interface);
 }
Exemplo n.º 24
0
 public function __construct($class)
 {
     parent::__construct('Unable to find class \'' . $class . '\' definition !');
 }
Exemplo n.º 25
0
 public function __construct($key)
 {
     parent::__construct('Could not save or write the requested key : ' . $key);
 }