Init
This commit is contained in:
20
src/Exceptions/AppException.php
Normal file
20
src/Exceptions/AppException.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace Rmphp\Foundation\Exceptions;
|
||||
|
||||
use Throwable;
|
||||
|
||||
class AppException extends \Exception {
|
||||
|
||||
public static function invalidObject($objectName) : self {
|
||||
return new self("Invalid object factory ". $objectName);
|
||||
}
|
||||
|
||||
public static function emptyConfig() : self {
|
||||
return new self('Empty config');
|
||||
}
|
||||
|
||||
public static function emptyAppNodes() : self {
|
||||
return new self('Empty App Nodes list');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user