public function ServicesArgumentException::__construct in Services 6.3
Same name and namespace in other branches
- 7.3 includes/services.runtime.inc \ServicesArgumentException::__construct()
Constructor for the ServicesException.
Parameters
string $message: Error message.
string $argument_name: The name of the argument that caused the error.
int $code: Optional. Error code. This often maps to the HTTP status codes. Defaults to 0.
mixed $data: Information that can be used by the server to return information about the error.
Overrides ServicesException::__construct
File
- ./
services.runtime.inc, line 65 - Contains functions that only are necessary when a service call is made. This has broken out so that this code isn't loaded for every page load.
Class
- ServicesArgumentException
- A exception thrown by services and related modules when an error related to a specific argument is encountered.
Code
public function __construct($message, $argument_name, $code, $data) {
parent::__construct($message, $code, $data);
$this->argument = $argument_name;
}