Exception.php 522 B

12345678910111213141516171819202122
  1. <?php
  2. namespace ModulesGarden\ProxmoxAddon\App\Libs\Api\OpenSRS;
  3. class Exception extends \Exception
  4. {
  5. public static function notDefined($propertyName)
  6. {
  7. throw new self("oSRS Error - $propertyName is not defined.");
  8. }
  9. public static function classNotFound($class)
  10. {
  11. throw new self("The class $class does not exist or cannot be found");
  12. }
  13. public static function cannotSetOneCall($string)
  14. {
  15. throw new self("oSRS Error - $string cannot be set in one call");
  16. }
  17. }