This commit is contained in:
User committed 2023-05-29 01:38:54 +03:00
commit dd312f5ea0
7 files changed
+105

No files matched your search

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