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

@param string $message  Error message
@param array  $metadata Metadata to be provided
@param string|null $severity
Deal with errors