Myobjects > Compiler / Exceptions.php

Questions? Need Help? Want to share? » PHP Forum
Script Name:
Myobjects

Download:
myobjects.zip

Category:
Development Tools

Archive Content:

Compiler

Compiler > CVS

Compiler

CVS

Docs > Api

Docs > Api > CVS

Docs > Api

Docs > Api > Media

Docs > Api > Media > CVS

Docs > Api > Media

Docs > Api > MyObjectsCommandLineClient

Docs > Api > MyObjectsCommandLineClient > CVS

Docs > Api > MyObjectsCommandLineClient

Docs > Api > MyObjectsCompiler

Docs > Api > MyObjectsCompiler > CVS

Docs > Api > MyObjectsCompiler

Docs > Api > MyObjectsRuntime > CVS

Docs > Api > MyObjectsRuntime

Docs > Api > MyObjectsWebClient

Docs > Api > MyObjectsWebClient > CVS

Docs > Api > MyObjectsWebClient

Docs > Api

Docs > Api > UserManagerExample

Docs > Api > UserManagerExample > CVS

Docs > Api > UserManagerExample

Docs > Api > WorldExample

Docs > Api > WorldExample > CVS

Docs > Api > WorldExample

Docs > Api > Filesource > CVS

Docs > Api > Filesource

Docs

Docs > CVS

Docs

Docs > Ddl Files

Docs > Ddl Files > CVS

Docs > Ddl Files

Docs

Docs > Developer

Docs > Developer > CVS

Docs

Docs > Images > CVS

Docs > Images

Docs

Docs > Mapable Files

Docs > Mapable Files > CVS

Docs > Mapable Files

Docs

Docs > Project Files > CVS

Docs > Project Files

Docs

Example App > CVS

Example App > User Manager > Casestudy > CVS

Example App > User Manager > Casestudy

Example App > User Manager

Example App > User Manager > CVS

Example App > User Manager

Example App > World Database > CVS

Example App > World Database

Example App > World Database > World

Example App > World Database > World > CVS

Example App > World Database > World

Example App > World Database

Runtime

Runtime > CVS

Runtime

Webclient > Actions

Webclient > Actions > CVS

Webclient > Actions

Webclient > CVS

Webclient > Images

Webclient > Images > CVS

Webclient > Images

Webclient

Webclient > Scripts > CVS

Webclient > Scripts

Webclient > Templates

Webclient > Templates > CVS

Webclient > Templates

Webclient > Tmp > CVS

Webclient

Content:

Exceptions.php:


<?PHP
/**
* MyObjects
*
* Copyright (c) 2004 R. Erdinc Yilmazel <erdinc <at> yilmazel <dot> com>
*
* http://www.myobjects.org
*
* @version $Id: Exceptions.php, v 1.2 2004/11/02 09:39:22 erdincyilmazel Exp $
* @author Erdinc Yilmazel <erdinc <at> yilmazel <dot> com>
* @package MyObjectsCompiler
*/

/**
* Thrown when the DDL file format is not valid
*
* @package MyObjectsCompiler
*/
class DDLFileNotValidException extends Exception {}

/**
* Thrown when the DDL file version is not supported
*
* @package MyObjectsCompiler
*/
class DDLVersionNotSupportedException extends Exception {}

/**
* Thrown when the referenced foreign table does not exist in the ddl file
*
* @package MyObjectsCompiler
*/
class InvalidForeignKeyException extends Exception {
    public 
$reference;
    public 
$fieldName;
    
    function 
__construct($message,  $reference,  $fieldName) {
        
parent::__construct($message);
        
$this->reference $reference;
        
$this->fieldName $fieldName;
    }
}

/**
* Thrown when an enum fields is set boolean but the values of it
* does not contain a boolean flag
*
* @package MyObjectsCompiler
*/
class BooleanFlagNotSetException extends Exception {
    public 
$fieldName;
    
    function 
__construct($message,  $fieldName) {
        
parent::__construct($message);
        
$this->fieldName $fieldName;
    }
}

/**
* Thrown when there is an invalid boolean enum field exists in ddl file
*
* @package MyObjectsCompiler
*/
class InvalidBooleanFieldException extends Exception {}

/**
* Thrown when a compile time error has occured
*
* @package MyObjectsCompiler
*/
class CompileTimeException extends Exception {}
?>


Other Development Tools Scripts:

WebMaster Resources Home

©RingsWorld.com