classPriorityOutOfRange
final class PriorityOutOfRange
implements Diagnostic
uses Snapshot
Public API: explicitly declared with
@visibility public.A THREAD_PRIORITY of CREATE RESOURCE GROUP outside the range of the group's type.
System groups take -20 to 0, user groups 0 to 19; the server rejects another value with ER_INVALID_THREAD_PRIORITY. Source: https://dev.mysql.com/doc/refman/8.4/en/create-resource-group.html.
(new \SqlSemantics\Platform\MySql\Statement\Account\Problem\PriorityOutOfRange('USER', '-5'))->message() // => 'Thread priority -5 is outside the range of a USER resource group (ER_INVALID_THREAD_PRIORITY).'Properties§
public string $typepublic string $priorityMethods§
public function __construct(public string $type, public string $priority)Parameters
$type | string | The type of the group |
$priority | string | The priority as written |
public function message(): stringDescribes the problem.
Returns
stringTest cases 1
Test cases 2§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.