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.

Describing the problemdoctest
(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 $type
public string $priority

Methods§

public function __construct(public string $type, public string $priority)

Parameters

$typestringThe type of the group
$prioritystringThe priority as written
public function message(): string

Describes the problem.

Returns

string
Test cases 1

Test cases 2§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 1
Other tests reaching this symbol 1

Relations§

Instantiated in 1