function __construct($registro, $columna, $valor_actual)
 {
     parent::__construct($registro);
     $this->tipo = toba_registro_conflicto::warning;
     $this->numero = 5;
     $this->columna = $columna;
     $this->valor_actual = $valor_actual == toba_personalizacion::nulo ? 'null' : $valor_actual;
 }
 function __construct($registro, $db_error)
 {
     parent::__construct($registro);
     $this->numero = 2;
     $this->db_error = $db_error;
     $sql_state = $this->db_error->get_sqlstate();
     switch ($sql_state) {
         case 'db_23503':
             $this->tipo = toba_registro_conflicto::warning;
             break;
         default:
             $this->tipo = toba_registro_conflicto::fatal;
     }
 }
 function __construct($registro)
 {
     parent::__construct($registro);
     $this->tipo = toba_registro_conflicto::fatal;
     $this->numero = 3;
 }