laravel-websockets/src/Exceptions/InvalidClient.php

24 lines
572 B
PHP
Raw Normal View History

2018-11-24 00:25:40 +00:00
<?php
namespace BeyondCode\LaravelWebSockets\Exceptions;
use Exception;
class InvalidClient extends Exception
{
public static function notFound(int $appId)
{
return new static("Could not find client for app id `{$appId}`.");
}
public static function appIdIsNotNumeric($appId)
{
return new static("Invalid app id `{$appId}` found. An app id should be numeric.");
}
public static function valueIsRequired($name, int $appId)
{
2018-11-26 07:55:38 +00:00
return new static("{$name} is required but was empty for app id `{$appId}`.");
2018-11-24 00:25:40 +00:00
}
}