WebOrbiton
v1.0.1

AtheraStudio Database

18 lines · 325 B
  1. <?php
  2. declare(strict_types=1);
  3. ​
  4. namespace Athera;
  5. ​
  6. defined('ATHERA') || exit;
  7. ​
  8. final class UserError extends \RuntimeException
  9. {
  10. public string $tag;
  11. ​
  12. public function __construct(string $message, int $code = 400, string $tag = '')
  13. {
  14. parent::__construct($message, $code);
  15. $this->tag = $tag;
  16. }
  17. }
  18. ​