PHP Classes
elePHPant
Icontem

File: classes/database/exceptions/query-not-editable-db-exception.php

Recommend this page to a friend!
  Classes of Gonzalo Chumillas  >  Ses Query  >  classes/database/exceptions/query-not-editable-db-exception.php  >  Download  
File: classes/database/exceptions/query-not-editable-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: 3 years ago
Size: 564 bytes
 

Contents

Class file image Download
<?php

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

/**
 * class QueryNotEditableDBException
 */
class QueryNotEditableDBException extends DBException {
   
   
/**
     * @param string $message
     * @param int $code = 0
     * @param Exception $previous = NULL
     */
   
public function __construct($message = NULL, $code = 0, $previous = NULL) {
        if (
strlen($message) == 0) {
           
$message = "The query is not editable";
        }
       
       
parent::__construct($message, $code, $previous);
    }
}