function notify($error_class, $message, $file, $line, $trace, $component = NULL)
{
$this->setParamsForNotify($error_class, $message, $file, $line, $trace, $component);
$url = "http://hoptoadapp.com/notifier_api/v2/notices";
$headers = array('Accept' => 'text/xml, application/xml', 'Content-Type' => 'text/xml');
$body = $this->buildXmlNotice();
try {
$status = call_user_func_array(array($this, $this->client . 'Request'), array($url, $headers, $body));
if ($status != 200) {
$this->handleErrorResponse($status);
}
} catch (RuntimeException $e) {
// TODO do something reasonable with the runtime exception.
// we can't really throw our runtime exception since we're likely in
// an exception handler. Punt on this for now and come back to it.
}
}