You are here

public static function cf_error::not_string in Common Functionality 7.2

Reports that a given argument is supposed to be a string but is not.

@see: not_string()

Parameters

string $argument_names: The variable name of the argument in question.

int $severity: (optional) The severity of the message, as per RFC 3164. Possible values are WATCHDOG_ERROR, WATCHDOG_WARNING, etc.

Return value

cf_error_code A object containing the processed error, with specified backtrace.

Deprecated

invalid_string() should be used instead.

File

modules/cf_error/classes/cf_error.php, line 95
Provides the derror exception class.

Class

cf_error

Code

public static function not_string($argument_name, $severity = WATCHDOG_ERROR) {
  return self::invalid_string($argument_name, $severity);
}