Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: a76ed534cb
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (11 sloc) 0.352 kB
<?php
$payload = getPayload();
require_once dirname(__FILE__) . '/lib/Airbrake.class.php';
$brake = new Services_Airbrake($payload->api_key, 'production', 'curl');
// YOUR WORKER CODE HERE
try {
//do something
}
catch (Exception $e) {
$brake->notify(get_class($e), $e->getMessage(), $e->getFile(), $e->getLine(), $e->getTrace(), "worker");
}
Jump to Line
Something went wrong with that request. Please try again.