- BC Break: _PHP_ namespaces changed (PSR-4 standard). The _root_ namespace for all _PF_ related scripts is Exodus4D\Pathfinder
- BC Break: Project folder structure changed. Removed `app/main` dir. - BC Break: Core _PHP_ framework + dependencies moved into `composer.json` and are no longer part of this repo
This commit is contained in:
28
app/Exception/DatabaseException.php
Normal file
28
app/Exception/DatabaseException.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: Exodus 4D
|
||||
* Date: 25.08.2017
|
||||
* Time: 20:31
|
||||
*/
|
||||
|
||||
namespace Exodus4D\Pathfinder\Exception;
|
||||
|
||||
|
||||
class DatabaseException extends PathfinderException {
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected $codes = [
|
||||
1500 => 500
|
||||
];
|
||||
|
||||
/**
|
||||
* DatabaseException constructor.
|
||||
* @param string $message
|
||||
*/
|
||||
public function __construct(string $message){
|
||||
parent::__construct($message, 1500);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user