Login   Register  
PHP Classes
elePHPant
Icontem

File: DATA/PrimaryKeyTooLarge.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Martin Alterisio  >  DATA  >  DATA/PrimaryKeyTooLarge.php  >  Download  
File: DATA/PrimaryKeyTooLarge.php
Role: Class source
Content type: text/plain
Description: An exception thrown when a primary key is too large for the operation requested.
Class: DATA
Access data stored in MySQL tables like arrays
Author: By
Last change: v0.8 - new exception hierarchy
+ anonymous access
Date: 7 years ago
Size: 539 bytes
 

Contents

Class file image Download
<?php
/**
 * @package DATA
 */

/**
 * An exception thrown when a primary key is too large for the
 * operation requested.
 */
class DATA_PrimaryKeyTooLarge extends DATA_IndexingStrategyException {
    
/**
     * Default constructor.
     * @param string $table The name of the table where the primary
     *                      key is too large.
     */
    
function __construct($table) {
        
parent::__construct("The primary key is too large in table '$table', use less fields for the primary key.");
    }
}
?>