public function InaccessibleRecordException::__construct in RESTful 7.2
Instantiates a InaccessibleRecordException object.
Parameters
string $message: The exception message.
File
- src/
Exception/ InaccessibleRecordException.php, line 25 - Contains \Drupal\restful\Exception\InaccessibleRecordException.
Class
- InaccessibleRecordException
- Class InaccessibleRecordException.
Namespace
Drupal\restful\ExceptionCode
public function __construct($message) {
$show_access_denied = variable_get('restful_show_access_denied', FALSE);
$this->message = $show_access_denied ? $message : static::ERROR_404_MESSAGE;
$this->code = $show_access_denied ? 403 : 404;
$this->instance = $show_access_denied ? 'help/restful/problem-instances-forbidden' : 'help/restful/problem-instances-not-found';
}