PHP Classes
elePHPant
Icontem

File: classes/database/exceptions/column-not-found-db-exception.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Gonzalo Chumillas  >  Ses Query  >  classes/database/exceptions/column-not-found-db-exception.php  >  Download  
File: classes/database/exceptions/column-not-found-db-exception.php
Role: Class source
Content type: text/plain
Description: Custom Exception
Class: Ses Query
Manipulate records retrieved with select queries
Author: By
Last change:
Date: 2 years ago
Size: 499 bytes
 

Contents

Class file image Download
<?php

require_once dirname(dirname(__DIR__)) . "/database/exceptions/db-exception.php";

/**
 * class ColumnNotFoundDBException
 */
class ColumnNotFoundDBException extends Exception {
   
   
/**
     * @param string $column
     * @param int $code = 0
     * @param Exception $previous = NULL
     */
   
public function __construct($column, $code = 0, $previous = NULL) {
       
$message = "The column `$column` were not found";
       
parent::__construct($message, $code, $previous);
    }
}