Location: PHPKode > projects > Neobill > NeoBill0.5.6/exceptions/RecordNotFoundException.class.php
<?php
/**
 * RecordNotFoundException.class.php
 *
 * This file contains the definition of the RecordNotFoundException class.  
 *
 * @package SolidWorks
 * @author John Diamond <hide@address.com>
 * @copyright John Diamond <hide@address.com>
 * @license http://www.opensource.org/licenses/gpl-license.php GNU Public License
 */

require_once dirname(__FILE__).'/../solidworks/exceptions/FieldException.class.php';

// Base class

/**
 * RecordNotFoundException
 *
 * @package SolidWorks
 * @author John Diamond <hide@address.com>
 */
class RecordNotFoundException extends FieldException
{
  const MESSAGE = '%s [RECORD_NOT_FOUND]';

  /**
   * @var string Record type
   */
  private $recordType = "Undefined";

  /**
   * RecordNotFoundException Constructor
   */
  public function __construct( $recordType )
  {
    parent::__construct();
    $this->recordType = $recordType;
  }

  /**
   * Error Message String
   *
   * @return string An error message that can be displayed to the user
   */
  public function __toString()
  {
    return sprintf( self::MESSAGE, $this->recordType );
  }
}
?>
Return current item: Neobill