public function notifyOnError($message, Array $metadata = null, $severity = null)
    {
        if ($this->enabled) {
            $this->bugsnagClient->notifyError('Error', $message, $metadata, $severity);
        }
    }