public static function getErrorName($errorCode)
    {
        if (!isset(static::$errorNames[$errorCode])) {
            throw new InvalidArgumentException(sprintf('The error code "%s" does not exist for constraint of type "%s".', $errorCode, \get_called_class()));
        }

        return static::$errorNames[$errorCode];
    }
public static function getErrorName($errorCode)
    {
        if (!isset(static::$errorNames[$errorCode])) {
            throw new InvalidArgumentException(sprintf('The error code "%s" does not exist for constraint of type "%s".', $errorCode, \get_called_class()));
        }

        return static::$errorNames[$errorCode];
    }
public static function getErrorName ( $ errorCode ) { if ( ! isset ( static :: $ errorNames [ $ errorCode ] ) ) { throw new InvalidArgumentException ( sprintf ( 'The error code "%s" does not exist for constraint of type "%s".' , $ errorCode , \ get_called_class ( ) ) ) ; } return static :: $ errorNames [ $ errorCode ] ; }
Returns the name of the given error code.

@param string $errorCode The error code

@return string The name of the error code

@throws InvalidArgumentException If the error code does not exist
Returns the name of the given error code .