PHP Classes

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

Recommend this page to a friend!
  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: 11 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);
    }
}