/** * Notify Bugsnag of a non-fatal/handled error * * @param String $name the name of the error, a short (1 word) string * @param String $message the error message * @param Array $metaData optional metaData to send with this error * @param String $severity optional severity of this error (fatal/error/warning/info) */ public function notifyError($name, $message, array $metaData = null, $severity = null) { $error = Bugsnag_Error::fromNamedError($this->config, $this->diagnostics, $name, $message); $error->setSeverity($severity); $this->notify($error, $metaData); }
protected function getError($name = "Name", $message = "Message") { return Bugsnag_Error::fromNamedError($this->config, $this->diagnostics, $name, $message); }