This commit is contained in:
User
2023-05-29 01:38:54 +03:00
commit dd312f5ea0
7 changed files with 105 additions and 0 deletions

View 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');
}
}