merge
This commit is contained in:
commit
046a724272
4209 changed files with 1186656 additions and 0 deletions
52
doc/files/exceptions/AccessDeniedException.inc.txt
Normal file
52
doc/files/exceptions/AccessDeniedException.inc.txt
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* NRE
|
||||
*
|
||||
* @author coderkun <olli@coderkun.de>
|
||||
* @copyright 2013 coderkun (http://www.coderkun.de)
|
||||
* @license http://www.gnu.org/licenses/gpl.html
|
||||
* @link http://www.coderkun.de/projects/nre
|
||||
*/
|
||||
|
||||
namespace nre\exceptions;
|
||||
|
||||
|
||||
/**
|
||||
* Exception: Access denied.
|
||||
*
|
||||
* @author coderkun <olli@coderkun.de>
|
||||
*/
|
||||
class AccessDeniedException extends \nre\core\Exception
|
||||
{
|
||||
/**
|
||||
* Error code
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
const CODE = 85;
|
||||
/**
|
||||
* Error message
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
const MESSAGE = 'access denied';
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Consturct a new exception.
|
||||
*/
|
||||
function __construct()
|
||||
{
|
||||
parent::__construct(
|
||||
self::MESSAGE,
|
||||
self::CODE
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
78
doc/files/exceptions/ActionNotFoundException.inc.txt
Normal file
78
doc/files/exceptions/ActionNotFoundException.inc.txt
Normal file
|
|
@ -0,0 +1,78 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* NRE
|
||||
*
|
||||
* @author coderkun <olli@coderkun.de>
|
||||
* @copyright 2013 coderkun (http://www.coderkun.de)
|
||||
* @license http://www.gnu.org/licenses/gpl.html
|
||||
* @link http://www.coderkun.de/projects/nre
|
||||
*/
|
||||
|
||||
namespace nre\exceptions;
|
||||
|
||||
|
||||
/**
|
||||
* Exception: Action not found.
|
||||
*
|
||||
* @author coderkun <olli@coderkun.de>
|
||||
*/
|
||||
class ActionNotFoundException extends \nre\core\Exception
|
||||
{
|
||||
/**
|
||||
* Error code
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
const CODE = 70;
|
||||
/**
|
||||
* Error message
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
const MESSAGE = 'action not found';
|
||||
|
||||
/**
|
||||
* Name of the action that was not found
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
private $action;
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Construct a new exception.
|
||||
*
|
||||
* @param string $action Name of the action that was not found
|
||||
*/
|
||||
function __construct($action)
|
||||
{
|
||||
parent::__construct(
|
||||
self::MESSAGE,
|
||||
self::CODE,
|
||||
$action
|
||||
);
|
||||
|
||||
// Store values
|
||||
$this->action = $action;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Get the name of the action that was not found.
|
||||
*
|
||||
* @return string Name of the action that was not found
|
||||
*/
|
||||
public function getAction()
|
||||
{
|
||||
return $this->action;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
68
doc/files/exceptions/AgentNotFoundException.inc.txt
Normal file
68
doc/files/exceptions/AgentNotFoundException.inc.txt
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* NRE
|
||||
*
|
||||
* @author coderkun <olli@coderkun.de>
|
||||
* @copyright 2013 coderkun (http://www.coderkun.de)
|
||||
* @license http://www.gnu.org/licenses/gpl.html
|
||||
* @link http://www.coderkun.de/projects/nre
|
||||
*/
|
||||
|
||||
namespace nre\exceptions;
|
||||
|
||||
|
||||
/**
|
||||
* Exception: Agent not found.
|
||||
*
|
||||
* @author coderkun <olli@coderkun.de>
|
||||
*/
|
||||
class AgentNotFoundException extends \nre\exceptions\ClassNotFoundException
|
||||
{
|
||||
/**
|
||||
* Error code
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
const CODE = 66;
|
||||
/**
|
||||
* Error message
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
const MESSAGE = 'agent not found';
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Construct a new exception.
|
||||
*
|
||||
* @param string $agentName Name of the Agent that was not found
|
||||
*/
|
||||
function __construct($agentName)
|
||||
{
|
||||
parent::__construct(
|
||||
$agentName,
|
||||
self::MESSAGE,
|
||||
self::CODE
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Get the name of the Agent that was not found.
|
||||
*
|
||||
* @return string Name of the Agent that was not found
|
||||
*/
|
||||
public function getAgentName()
|
||||
{
|
||||
return $this->getClassName();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
68
doc/files/exceptions/AgentNotValidException.inc.txt
Normal file
68
doc/files/exceptions/AgentNotValidException.inc.txt
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* NRE
|
||||
*
|
||||
* @author coderkun <olli@coderkun.de>
|
||||
* @copyright 2013 coderkun (http://www.coderkun.de)
|
||||
* @license http://www.gnu.org/licenses/gpl.html
|
||||
* @link http://www.coderkun.de/projects/nre
|
||||
*/
|
||||
|
||||
namespace nre\exceptions;
|
||||
|
||||
|
||||
/**
|
||||
* Exception: Agent not valid.
|
||||
*
|
||||
* @author coderkun <olli@coderkun.de>
|
||||
*/
|
||||
class AgentNotValidException extends \nre\exceptions\ClassNotValidException
|
||||
{
|
||||
/**
|
||||
* Error code
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
const CODE = 76;
|
||||
/**
|
||||
* Error message
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
const MESSAGE = 'agent not valid';
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Construct a new exception.
|
||||
*
|
||||
* @param string $agentName Name of the invalid Agent
|
||||
*/
|
||||
function __construct($agentName)
|
||||
{
|
||||
parent::__construct(
|
||||
$agentName,
|
||||
self::MESSAGE,
|
||||
self::CODE
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Get the name of the invalid Agent.
|
||||
*
|
||||
* @return string Name of the invalid Agent
|
||||
*/
|
||||
public function getAgentName()
|
||||
{
|
||||
return $this->getClassName();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
80
doc/files/exceptions/ClassNotFoundException.inc.txt
Normal file
80
doc/files/exceptions/ClassNotFoundException.inc.txt
Normal file
|
|
@ -0,0 +1,80 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* NRE
|
||||
*
|
||||
* @author coderkun <olli@coderkun.de>
|
||||
* @copyright 2013 coderkun (http://www.coderkun.de)
|
||||
* @license http://www.gnu.org/licenses/gpl.html
|
||||
* @link http://www.coderkun.de/projects/nre
|
||||
*/
|
||||
|
||||
namespace nre\exceptions;
|
||||
|
||||
|
||||
/**
|
||||
* Exception: Class not found.
|
||||
*
|
||||
* @author coderkun <olli@coderkun.de>
|
||||
*/
|
||||
class ClassNotFoundException extends \nre\core\Exception
|
||||
{
|
||||
/**
|
||||
* Error code
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
const CODE = 64;
|
||||
/**
|
||||
* Error message
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
const MESSAGE = 'class not found';
|
||||
|
||||
/**
|
||||
* Name of the class that was not found
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
private $className;
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Construct a new exception
|
||||
*
|
||||
* @param string $className Name of the class that was not found
|
||||
* @param string $message Error message
|
||||
* @param int $code Error code
|
||||
*/
|
||||
function __construct($className, $message=self::MESSAGE, $code=self::CODE)
|
||||
{
|
||||
parent::__construct(
|
||||
$message,
|
||||
$code,
|
||||
$className
|
||||
);
|
||||
|
||||
// Store values
|
||||
$this->className = $className;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Get the name of the class that was not found.
|
||||
*
|
||||
* @return string Name of the class that was not found
|
||||
*/
|
||||
public function getClassName()
|
||||
{
|
||||
return $this->className;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
80
doc/files/exceptions/ClassNotValidException.inc.txt
Normal file
80
doc/files/exceptions/ClassNotValidException.inc.txt
Normal file
|
|
@ -0,0 +1,80 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* NRE
|
||||
*
|
||||
* @author coderkun <olli@coderkun.de>
|
||||
* @copyright 2013 coderkun (http://www.coderkun.de)
|
||||
* @license http://www.gnu.org/licenses/gpl.html
|
||||
* @link http://www.coderkun.de/projects/nre
|
||||
*/
|
||||
|
||||
namespace nre\exceptions;
|
||||
|
||||
|
||||
/**
|
||||
* Exception: Class not valid.
|
||||
*
|
||||
* @author coderkun <olli@coderkun.de>
|
||||
*/
|
||||
class ClassNotValidException extends \nre\core\Exception
|
||||
{
|
||||
/**
|
||||
* Error code
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
const CODE = 74;
|
||||
/**
|
||||
* Error message
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
const MESSAGE = 'class not valid';
|
||||
|
||||
/**
|
||||
* Name of the invalid class
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
private $className;
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Construct a new exception.
|
||||
*
|
||||
* @param string $className Name of the invalid class
|
||||
* @param string $message Error message
|
||||
* @param int $code Error code
|
||||
*/
|
||||
function __construct($className, $message=self::MESSAGE, $code=self::CODE)
|
||||
{
|
||||
parent::__construct(
|
||||
$message,
|
||||
$code,
|
||||
$className
|
||||
);
|
||||
|
||||
// Store value
|
||||
$this->className = $className;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Get the name of the invalid class.
|
||||
*
|
||||
* @return string Name of the invalid class
|
||||
*/
|
||||
public function getClassName()
|
||||
{
|
||||
return $this->className;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
68
doc/files/exceptions/ComponentNotFoundException.inc.txt
Normal file
68
doc/files/exceptions/ComponentNotFoundException.inc.txt
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* NRE
|
||||
*
|
||||
* @author coderkun <olli@coderkun.de>
|
||||
* @copyright 2013 coderkun (http://www.coderkun.de)
|
||||
* @license http://www.gnu.org/licenses/gpl.html
|
||||
* @link http://www.coderkun.de/projects/nre
|
||||
*/
|
||||
|
||||
namespace nre\exceptions;
|
||||
|
||||
|
||||
/**
|
||||
* Exception: Component not found.
|
||||
*
|
||||
* @author coderkun <olli@coderkun.de>
|
||||
*/
|
||||
class ComponentNotFoundException extends \nre\exceptions\ClassNotFoundException
|
||||
{
|
||||
/**
|
||||
* Error code
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
const CODE = 67;
|
||||
/**
|
||||
* Error message
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
const MESSAGE = 'component not found';
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Construct a new exception.
|
||||
*
|
||||
* @param string $componentName Name of the Component that was not found
|
||||
*/
|
||||
function __construct($componentName)
|
||||
{
|
||||
parent::__construct(
|
||||
$componentName,
|
||||
self::MESSAGE,
|
||||
self::CODE
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Get the name of the Component that was not found.
|
||||
*
|
||||
* @return string Name of the Component that was not found
|
||||
*/
|
||||
public function getComponentName()
|
||||
{
|
||||
return $this->getClassName();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
68
doc/files/exceptions/ComponentNotValidException.inc.txt
Normal file
68
doc/files/exceptions/ComponentNotValidException.inc.txt
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* NRE
|
||||
*
|
||||
* @author coderkun <olli@coderkun.de>
|
||||
* @copyright 2013 coderkun (http://www.coderkun.de)
|
||||
* @license http://www.gnu.org/licenses/gpl.html
|
||||
* @link http://www.coderkun.de/projects/nre
|
||||
*/
|
||||
|
||||
namespace nre\exceptions;
|
||||
|
||||
|
||||
/**
|
||||
* Exception: Component not valid.
|
||||
*
|
||||
* @author coderkun <olli@coderkun.de>
|
||||
*/
|
||||
class ComponentNotValidException extends \nre\exceptions\ClassNotValidException
|
||||
{
|
||||
/**
|
||||
* Error code
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
const CODE = 77;
|
||||
/**
|
||||
* Error message
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
const MESSAGE = 'component not valid';
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Construct a new exception.
|
||||
*
|
||||
* @param string $componentName Name of the invalid Component
|
||||
*/
|
||||
function __construct($componentName)
|
||||
{
|
||||
parent::__construct(
|
||||
$componentName,
|
||||
self::MESSAGE,
|
||||
self::CODE
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Get the name of the invalid Component.
|
||||
*
|
||||
* @return string Name of the invalid Component
|
||||
*/
|
||||
public function getComponentName()
|
||||
{
|
||||
return $this->getClassName();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
68
doc/files/exceptions/ControllerNotFoundException.inc.txt
Normal file
68
doc/files/exceptions/ControllerNotFoundException.inc.txt
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* NRE
|
||||
*
|
||||
* @author coderkun <olli@coderkun.de>
|
||||
* @copyright 2013 coderkun (http://www.coderkun.de)
|
||||
* @license http://www.gnu.org/licenses/gpl.html
|
||||
* @link http://www.coderkun.de/projects/nre
|
||||
*/
|
||||
|
||||
namespace nre\exceptions;
|
||||
|
||||
|
||||
/**
|
||||
* Exception: Controller not found.
|
||||
*
|
||||
* @author coderkun <olli@coderkun.de>
|
||||
*/
|
||||
class ControllerNotFoundException extends \nre\exceptions\ClassNotFoundException
|
||||
{
|
||||
/**
|
||||
* Error code
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
const CODE = 67;
|
||||
/**
|
||||
* Error message
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
const MESSAGE = 'controller not found';
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Construct a new exception.
|
||||
*
|
||||
* @param string $controllerName Name of the Controller that was not found
|
||||
*/
|
||||
function __construct($controllerName)
|
||||
{
|
||||
parent::__construct(
|
||||
$controllerName,
|
||||
self::MESSAGE,
|
||||
self::CODE
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Get the name of the Controller that was not found.
|
||||
*
|
||||
* @return string Name of the Controller that was not found
|
||||
*/
|
||||
public function getControllerName()
|
||||
{
|
||||
return $this->getClassName();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
68
doc/files/exceptions/ControllerNotValidException.inc.txt
Normal file
68
doc/files/exceptions/ControllerNotValidException.inc.txt
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* NRE
|
||||
*
|
||||
* @author coderkun <olli@coderkun.de>
|
||||
* @copyright 2013 coderkun (http://www.coderkun.de)
|
||||
* @license http://www.gnu.org/licenses/gpl.html
|
||||
* @link http://www.coderkun.de/projects/nre
|
||||
*/
|
||||
|
||||
namespace nre\exceptions;
|
||||
|
||||
|
||||
/**
|
||||
* Exception: Controller not valid.
|
||||
*
|
||||
* @author coderkun <olli@coderkun.de>
|
||||
*/
|
||||
class ControllerNotValidException extends \nre\exceptions\ClassNotValidException
|
||||
{
|
||||
/**
|
||||
* Error code
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
const CODE = 77;
|
||||
/**
|
||||
* Error message
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
const MESSAGE = 'controller not valid';
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Construct a new exception.
|
||||
*
|
||||
* @param string $controllerName Name of the invalid Controller
|
||||
*/
|
||||
function __construct($controllerName)
|
||||
{
|
||||
parent::__construct(
|
||||
$controllerName,
|
||||
self::MESSAGE,
|
||||
self::CODE
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Get the name of the invalid Controller.
|
||||
*
|
||||
* @return string Name of the invalid Controller
|
||||
*/
|
||||
public function getControllerName()
|
||||
{
|
||||
return $this->getClassName();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
100
doc/files/exceptions/DatamodelException.inc.txt
Normal file
100
doc/files/exceptions/DatamodelException.inc.txt
Normal file
|
|
@ -0,0 +1,100 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* NRE
|
||||
*
|
||||
* @author coderkun <olli@coderkun.de>
|
||||
* @copyright 2013 coderkun (http://www.coderkun.de)
|
||||
* @license http://www.gnu.org/licenses/gpl.html
|
||||
* @link http://www.coderkun.de/projects/nre
|
||||
*/
|
||||
|
||||
namespace nre\exceptions;
|
||||
|
||||
|
||||
/**
|
||||
* Exception: Datamodel.
|
||||
*
|
||||
* This exception is thrown when an error occurred during the execution
|
||||
* of a datamodel.
|
||||
*
|
||||
* @author coderkun <olli@coderkun.de>
|
||||
*/
|
||||
class DatamodelException extends \nre\core\Exception
|
||||
{
|
||||
/**
|
||||
* Error code
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
const CODE = 84;
|
||||
/**
|
||||
* Error message
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
const MESSAGE = 'datamodel error';
|
||||
|
||||
/**
|
||||
* Error message of datamodel
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
private $datamodelMessage;
|
||||
/**
|
||||
* Error code of datamodel
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
private $datamodelErrorNumber;
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Consturct a new exception.
|
||||
*
|
||||
* @param string $datamodelMessage Error message of datamodel
|
||||
* @param int $datamodelErrorNumber Error code of datamodel
|
||||
*/
|
||||
function __construct($datamodelMessage, $datamodelErrorNumber)
|
||||
{
|
||||
parent::__construct(
|
||||
self::MESSAGE,
|
||||
self::CODE,
|
||||
$datamodelMessage." ($datamodelErrorNumber)"
|
||||
);
|
||||
|
||||
// Store values
|
||||
$this->datamodelMessage = $datamodelMessage;
|
||||
$this->datamodelErrorNumber = $datamodelErrorNumber;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Get the error message of datamodel.
|
||||
*
|
||||
* @return string Error message of datamodel
|
||||
*/
|
||||
public function getDatamodelMessage()
|
||||
{
|
||||
return $this->datamodelMessage;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get the error code of datamodel.
|
||||
*
|
||||
* @return string Error code of datamodel
|
||||
*/
|
||||
public function getDatamodelErrorNumber()
|
||||
{
|
||||
return $this->datamodelErrorNumber;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
69
doc/files/exceptions/DriverNotFoundException.inc.txt
Normal file
69
doc/files/exceptions/DriverNotFoundException.inc.txt
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* NRE
|
||||
*
|
||||
* @author coderkun <olli@coderkun.de>
|
||||
* @copyright 2013 coderkun (http://www.coderkun.de)
|
||||
* @license http://www.gnu.org/licenses/gpl.html
|
||||
* @link http://www.coderkun.de/projects/nre
|
||||
*/
|
||||
|
||||
namespace nre\exceptions;
|
||||
|
||||
|
||||
/**
|
||||
* Exception: Driver not found.
|
||||
*
|
||||
* @author coderkun <olli@coderkun.de>
|
||||
*/
|
||||
class DriverNotFoundException extends \nre\exceptions\ClassNotFoundException
|
||||
{
|
||||
/**
|
||||
* Error code
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
const CODE = 71;
|
||||
/**
|
||||
* Error message
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
const MESSAGE = 'driver not found';
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Construct a new exception.
|
||||
*
|
||||
* @param string $driverName Name of the driver that was not found
|
||||
*/
|
||||
function __construct($driverName)
|
||||
{
|
||||
// Elternkonstruktor aufrufen
|
||||
parent::__construct(
|
||||
$driverName,
|
||||
self::MESSAGE,
|
||||
self::CODE
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Get the name of the driver that was not found.
|
||||
*
|
||||
* @return string Name of the driver that was not found
|
||||
*/
|
||||
public function getDriverName()
|
||||
{
|
||||
return $this->getClassName();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
69
doc/files/exceptions/DriverNotValidException.inc.txt
Normal file
69
doc/files/exceptions/DriverNotValidException.inc.txt
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* NRE
|
||||
*
|
||||
* @author coderkun <olli@coderkun.de>
|
||||
* @copyright 2013 coderkun (http://www.coderkun.de)
|
||||
* @license http://www.gnu.org/licenses/gpl.html
|
||||
* @link http://www.coderkun.de/projects/nre
|
||||
*/
|
||||
|
||||
namespace nre\exceptions;
|
||||
|
||||
|
||||
/**
|
||||
* Exception: Driver not valid.
|
||||
*
|
||||
* @author coderkun <olli@coderkun.de>
|
||||
*/
|
||||
class DriverNotValidException extends \nre\exceptions\ClassNotValidException
|
||||
{
|
||||
/**
|
||||
* Error code
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
const CODE = 81;
|
||||
/**
|
||||
* Error message
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
const MESSAGE = 'driver not valid';
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Konstruktor.
|
||||
*
|
||||
* @param string $driverName Name of the invalid driver
|
||||
*/
|
||||
function __construct($driverName)
|
||||
{
|
||||
// Elternkonstruktor aufrufen
|
||||
parent::__construct(
|
||||
$driverName,
|
||||
self::MESSAGE,
|
||||
self::CODE
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Get the name of the invalid driver.
|
||||
*
|
||||
* @return string Name of the invalid driver
|
||||
*/
|
||||
public function getDriverName()
|
||||
{
|
||||
return $this->getClassName();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
97
doc/files/exceptions/FatalDatamodelException.inc.txt
Normal file
97
doc/files/exceptions/FatalDatamodelException.inc.txt
Normal file
|
|
@ -0,0 +1,97 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* NRE
|
||||
*
|
||||
* @author coderkun <olli@coderkun.de>
|
||||
* @copyright 2013 coderkun (http://www.coderkun.de)
|
||||
* @license http://www.gnu.org/licenses/gpl.html
|
||||
* @link http://www.coderkun.de/projects/nre
|
||||
*/
|
||||
|
||||
namespace nre\exceptions;
|
||||
|
||||
|
||||
/**
|
||||
* Exception: Datamodel exception that is fatal for the application.
|
||||
*
|
||||
* @author coderkun <olli@coderkun.de>
|
||||
*/
|
||||
class FatalDatamodelException extends \nre\core\Exception
|
||||
{
|
||||
/**
|
||||
* Error code
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
const CODE = 85;
|
||||
/**
|
||||
* Error message
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
const MESSAGE = 'fatal datamodel error';
|
||||
|
||||
/**
|
||||
* Error message of datamodel
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
private $datamodelMessage;
|
||||
/**
|
||||
* Error code of datamodel
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
private $datamodelErrorNumber;
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Consturct a new exception.
|
||||
*
|
||||
* @param string $datamodelMessage Error message of datamodel
|
||||
* @param int $datamodelErrorNumber Error code of datamodel
|
||||
*/
|
||||
function __construct($datamodelMessage, $datamodelErrorNumber)
|
||||
{
|
||||
parent::__construct(
|
||||
self::MESSAGE,
|
||||
self::CODE,
|
||||
$datamodelMessage." ($datamodelErrorNumber)"
|
||||
);
|
||||
|
||||
// Store values
|
||||
$this->datamodelMessage = $datamodelMessage;
|
||||
$this->datamodelErrorNumber = $datamodelErrorNumber;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Get the error message of datamodel.
|
||||
*
|
||||
* @return string Error message of datamodel
|
||||
*/
|
||||
public function getDatamodelMessage()
|
||||
{
|
||||
return $this->datamodelMessage;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get the error code of datamodel.
|
||||
*
|
||||
* @return string Error code of datamodel
|
||||
*/
|
||||
public function getDatamodelErrorNumber()
|
||||
{
|
||||
return $this->datamodelErrorNumber;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
78
doc/files/exceptions/IdNotFoundException.inc.txt
Normal file
78
doc/files/exceptions/IdNotFoundException.inc.txt
Normal file
|
|
@ -0,0 +1,78 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* NRE
|
||||
*
|
||||
* @author coderkun <olli@coderkun.de>
|
||||
* @copyright 2013 coderkun (http://www.coderkun.de)
|
||||
* @license http://www.gnu.org/licenses/gpl.html
|
||||
* @link http://www.coderkun.de/projects/nre
|
||||
*/
|
||||
|
||||
namespace nre\exceptions;
|
||||
|
||||
|
||||
/**
|
||||
* Exception: ID not found.
|
||||
*
|
||||
* @author coderkun <olli@coderkun.de>
|
||||
*/
|
||||
class IdNotFoundException extends \nre\core\Exception
|
||||
{
|
||||
/**
|
||||
* Error code
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
const CODE = 85;
|
||||
/**
|
||||
* Error message
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
const MESSAGE = 'id not found';
|
||||
|
||||
/**
|
||||
* ID that was not found
|
||||
*
|
||||
* @var mixed
|
||||
*/
|
||||
private $id;
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Consturct a new exception.
|
||||
*
|
||||
* @param mixed $id ID that was not found
|
||||
*/
|
||||
function __construct($id)
|
||||
{
|
||||
parent::__construct(
|
||||
self::MESSAGE,
|
||||
self::CODE,
|
||||
$id
|
||||
);
|
||||
|
||||
// Store values
|
||||
$this->id = $id;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Get the ID that was not found.
|
||||
*
|
||||
* @return mixed ID that was not found
|
||||
*/
|
||||
public function getId()
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
69
doc/files/exceptions/LayoutNotFoundException.inc.txt
Normal file
69
doc/files/exceptions/LayoutNotFoundException.inc.txt
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* NRE
|
||||
*
|
||||
* @author coderkun <olli@coderkun.de>
|
||||
* @copyright 2013 coderkun (http://www.coderkun.de)
|
||||
* @license http://www.gnu.org/licenses/gpl.html
|
||||
* @link http://www.coderkun.de/projects/nre
|
||||
*/
|
||||
|
||||
namespace nre\exceptions;
|
||||
|
||||
|
||||
/**
|
||||
* Exception: Layout not found.
|
||||
*
|
||||
* @author coderkun <olli@coderkun.de>
|
||||
*/
|
||||
class LayoutNotFoundException extends \nre\exceptions\AgentNotFoundException
|
||||
{
|
||||
/**
|
||||
* Error code
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
const CODE = 65;
|
||||
/**
|
||||
* Error message
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
const MESSAGE = 'layout not found';
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Construct a new exception.
|
||||
*
|
||||
* @param string $layoutName Name of the Layout that was not found
|
||||
*/
|
||||
function __construct($layoutName)
|
||||
{
|
||||
// Elternkonstruktor aufrufen
|
||||
parent::__construct(
|
||||
$layoutName,
|
||||
self::MESSAGE,
|
||||
self::CODE
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Get the name of the Layout that was not found.
|
||||
*
|
||||
* @return string Name of the Layout that was not found
|
||||
*/
|
||||
public function getLayoutName()
|
||||
{
|
||||
return $this->getAgentName();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
68
doc/files/exceptions/LayoutNotValidException.inc.txt
Normal file
68
doc/files/exceptions/LayoutNotValidException.inc.txt
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* NRE
|
||||
*
|
||||
* @author coderkun <olli@coderkun.de>
|
||||
* @copyright 2013 coderkun (http://www.coderkun.de)
|
||||
* @license http://www.gnu.org/licenses/gpl.html
|
||||
* @link http://www.coderkun.de/projects/nre
|
||||
*/
|
||||
|
||||
namespace nre\exceptions;
|
||||
|
||||
|
||||
/**
|
||||
* Exception: Layout not valid.
|
||||
*
|
||||
* @author coderkun <olli@coderkun.de>
|
||||
*/
|
||||
class LayoutNotValidException extends \nre\exceptions\AgentNotFoundException
|
||||
{
|
||||
/**
|
||||
* Error code
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
const CODE = 75;
|
||||
/**
|
||||
* Error message
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
const MESSAGE = 'layout not valid';
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Construct a new exception.
|
||||
*
|
||||
* @param string $layoutName Name of the invalid Layout
|
||||
*/
|
||||
function __construct($layoutName)
|
||||
{
|
||||
parent::__construct(
|
||||
$layoutName,
|
||||
self::MESSAGE,
|
||||
self::CODE
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Get the name of the invalid Layout.
|
||||
*
|
||||
* @return string Name of the invalid Layout
|
||||
*/
|
||||
public function getLayoutName()
|
||||
{
|
||||
return $this->getAgentName();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
68
doc/files/exceptions/ModelNotFoundException.inc.txt
Normal file
68
doc/files/exceptions/ModelNotFoundException.inc.txt
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* NRE
|
||||
*
|
||||
* @author coderkun <olli@coderkun.de>
|
||||
* @copyright 2013 coderkun (http://www.coderkun.de)
|
||||
* @license http://www.gnu.org/licenses/gpl.html
|
||||
* @link http://www.coderkun.de/projects/nre
|
||||
*/
|
||||
|
||||
namespace nre\exceptions;
|
||||
|
||||
|
||||
/**
|
||||
* Exception: Action not found.
|
||||
*
|
||||
* @author coderkun <olli@coderkun.de>
|
||||
*/
|
||||
class ModelNotFoundException extends \nre\exceptions\ClassNotFoundException
|
||||
{
|
||||
/**
|
||||
* Error code
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
const CODE = 68;
|
||||
/**
|
||||
* Error message
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
const MESSAGE = 'model not found';
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Construct a new exception.
|
||||
*
|
||||
* @param string $modelName Name of the Model that was not found
|
||||
*/
|
||||
function __construct($modelName)
|
||||
{
|
||||
parent::__construct(
|
||||
$modelName,
|
||||
self::MESSAGE,
|
||||
self::CODE
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Get the name of the Model that was not found
|
||||
*
|
||||
* @return string Name of the Model that was not found
|
||||
*/
|
||||
public function getModelName()
|
||||
{
|
||||
return $this->getClassName();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
69
doc/files/exceptions/ModelNotValidException.inc.txt
Normal file
69
doc/files/exceptions/ModelNotValidException.inc.txt
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* NRE
|
||||
*
|
||||
* @author coderkun <olli@coderkun.de>
|
||||
* @copyright 2013 coderkun (http://www.coderkun.de)
|
||||
* @license http://www.gnu.org/licenses/gpl.html
|
||||
* @link http://www.coderkun.de/projects/nre
|
||||
*/
|
||||
|
||||
namespace nre\exceptions;
|
||||
|
||||
|
||||
/**
|
||||
* Exception: Action not found.
|
||||
*
|
||||
* @author coderkun <olli@coderkun.de>
|
||||
*/
|
||||
class ModelNotValidException extends \nre\exceptions\ClassNotValidException
|
||||
{
|
||||
/**
|
||||
* Error code
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
const CODE = 78;
|
||||
/**
|
||||
* Error message
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
const MESSAGE = 'model not valid';
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Construct a new exception.
|
||||
*
|
||||
* @param string $modelName Name of the invalid Model
|
||||
*/
|
||||
function __construct($modelName)
|
||||
{
|
||||
// Elternkonstruktor aufrufen
|
||||
parent::__construct(
|
||||
$modelName,
|
||||
self::MESSAGE,
|
||||
self::CODE
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Get the name of the invalid Model
|
||||
*
|
||||
* @return string Name of the invalid Model
|
||||
*/
|
||||
public function getModelName()
|
||||
{
|
||||
return $this->getClassName();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
78
doc/files/exceptions/ParamsNotValidException.inc.txt
Normal file
78
doc/files/exceptions/ParamsNotValidException.inc.txt
Normal file
|
|
@ -0,0 +1,78 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* NRE
|
||||
*
|
||||
* @author coderkun <olli@coderkun.de>
|
||||
* @copyright 2013 coderkun (http://www.coderkun.de)
|
||||
* @license http://www.gnu.org/licenses/gpl.html
|
||||
* @link http://www.coderkun.de/projects/nre
|
||||
*/
|
||||
|
||||
namespace nre\exceptions;
|
||||
|
||||
|
||||
/**
|
||||
* Exception Parameters not valid.
|
||||
*
|
||||
* @author coderkun <olli@coderkun.de>
|
||||
*/
|
||||
class ParamsNotValidException extends \nre\core\Exception
|
||||
{
|
||||
/**
|
||||
* Error code
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
const CODE = 86;
|
||||
/**
|
||||
* Error message
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
const MESSAGE = 'parameters not valid';
|
||||
|
||||
/**
|
||||
* Invalid parameters.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
private $params;
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Construct a new exception.
|
||||
*
|
||||
* @param mixed $param1 Invalid parameters as argument list
|
||||
*/
|
||||
function __construct($param1)
|
||||
{
|
||||
parent::__construct(
|
||||
self::MESSAGE,
|
||||
self::CODE,
|
||||
implode(', ', func_get_args())
|
||||
);
|
||||
|
||||
// Store values
|
||||
$this->params = func_get_args();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Get invalid parameters.
|
||||
*
|
||||
* @return array Invalid parameters
|
||||
*/
|
||||
public function getParams()
|
||||
{
|
||||
return $this->params;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
78
doc/files/exceptions/ServiceUnavailableException.inc.txt
Normal file
78
doc/files/exceptions/ServiceUnavailableException.inc.txt
Normal file
|
|
@ -0,0 +1,78 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* NRE
|
||||
*
|
||||
* @author coderkun <olli@coderkun.de>
|
||||
* @copyright 2013 coderkun (http://www.coderkun.de)
|
||||
* @license http://www.gnu.org/licenses/gpl.html
|
||||
* @link http://www.coderkun.de/projects/nre
|
||||
*/
|
||||
|
||||
namespace nre\exceptions;
|
||||
|
||||
|
||||
/**
|
||||
* Exception: Service is unavailable.
|
||||
*
|
||||
* @author coderkun <olli@coderkun.de>
|
||||
*/
|
||||
class ServiceUnavailableException extends \nre\core\Exception
|
||||
{
|
||||
/**
|
||||
* Error code
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
const CODE = 84;
|
||||
/**
|
||||
* Error message
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
const MESSAGE = 'service unavailable';
|
||||
|
||||
/**
|
||||
* Throws exception
|
||||
*
|
||||
* @var Exception
|
||||
*/
|
||||
private $exception;
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Construct a new exception.
|
||||
*
|
||||
* @param \Exception $exception Exception that has occurred
|
||||
*/
|
||||
function __construct($exception)
|
||||
{
|
||||
parent::__construct(
|
||||
self::MESSAGE,
|
||||
self::CODE,
|
||||
$exception->getMessage()
|
||||
);
|
||||
|
||||
// Store values
|
||||
$this->exception = $exception;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Get the exception that hat occurred
|
||||
*
|
||||
* @return \Exception Exception that has occurred
|
||||
*/
|
||||
public function getException()
|
||||
{
|
||||
return $this->exception;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
78
doc/files/exceptions/ViewNotFoundException.inc.txt
Normal file
78
doc/files/exceptions/ViewNotFoundException.inc.txt
Normal file
|
|
@ -0,0 +1,78 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* NRE
|
||||
*
|
||||
* @author coderkun <olli@coderkun.de>
|
||||
* @copyright 2013 coderkun (http://www.coderkun.de)
|
||||
* @license http://www.gnu.org/licenses/gpl.html
|
||||
* @link http://www.coderkun.de/projects/nre
|
||||
*/
|
||||
|
||||
namespace nre\exceptions;
|
||||
|
||||
|
||||
/**
|
||||
* Exception: View not found.
|
||||
*
|
||||
* @author coderkun <olli@coderkun.de>
|
||||
*/
|
||||
class ViewNotFoundException extends \nre\core\Exception
|
||||
{
|
||||
/**
|
||||
* Error code
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
const CODE = 69;
|
||||
/**
|
||||
* Error message
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
const MESSAGE = 'view not found';
|
||||
|
||||
/**
|
||||
* Filename of the view that was not found
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
private $fileName;
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Construct a new exception.
|
||||
*
|
||||
* @param string $fileName Filename of the view that was not found
|
||||
*/
|
||||
function __construct($fileName)
|
||||
{
|
||||
parent::__construct(
|
||||
self::MESSAGE,
|
||||
self::CODE,
|
||||
$fileName
|
||||
);
|
||||
|
||||
// Save values
|
||||
$this->fileName = $fileName;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Get the filename of the view that was not found.
|
||||
*
|
||||
* @return string Filename of the view that was not found
|
||||
*/
|
||||
public function getFileName()
|
||||
{
|
||||
return $this->fileName;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue