You are here

public function RestfulException::getInstance in RESTful 7

Get the URL to the error for the particular case.

Return value

string The url or NULL if empty.

File

exceptions/RestfulException.php, line 108
Contains RestfulException

Class

RestfulException
@file Contains RestfulException

Code

public function getInstance() {

  // Handle all instances using the advanced help module.
  if (!module_exists('advanced_help') || empty($this->instance)) {
    return;
  }
  return url($this->instance, array(
    'absolute' => TRUE,
  ));
}