You are here

public static function ServicesClientErrorType::getTypeName in Services Client 7.2

Retrieve error type user readable name.

Parameters

int $type: Type contstant value.

Return value

string Name of error

1 call to ServicesClientErrorType::getTypeName()
EventHandler::logErrorResult in include/event.inc
Log error result from services client operation.

File

include/plugin.inc, line 179
Base plugin definitions. All other plugins should be extended from this set of plugins.

Class

ServicesClientErrorType
Define error types.

Code

public static function getTypeName($type) {
  $types = self::getTypes();
  return isset($types[$type]) ? $types[$type] : NULL;
}