Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Util.php

function Util::validateErrorLevel

1 call to Util::validateErrorLevel()
Util::setErrorLevel in vendor/open-telemetry/sdk/Common/Dev/Compatibility/Util.php

File

vendor/open-telemetry/sdk/Common/Dev/Compatibility/Util.php, line 82

Class

Util

Namespace

OpenTelemetry\SDK\Common\Dev\Compatibility

Code

private static function validateErrorLevel(int $errorLevel) : void {
    if (!in_array($errorLevel, self::ERROR_LEVELS, true)) {
        throw new \InvalidArgumentException(sprintf('Error level must be one of "%s"', implode('", "', self::ERROR_LEVELS)));
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal