public function cf_error_code::set_type in Common Functionality 7.2
Assigns a custom error type.
Parameters
string $type: The category to which this message belongs. Can be any string, but the general practice is to use the name of the module calling watchdog().
See also
watchdog()
File
- modules/
cf_error/ classes/ cf_error_code.php, line 46 - Provides the derror exception class.
Class
Code
public function set_type($type) {
$this->type = $type;
}