C# Class SharpBrake.Mvc.AirbrakeNoticeBuilder

Responsible for building the notice that is sent to Airbrake.
Show file Open project: nhsevidence/SharpBrake.Mvc Class Usage Examples

Public Methods

Method Description
AirbrakeNoticeBuilder ( AirbrakeConfiguration configuration ) : System

Initializes a new instance of the AirbrakeNoticeBuilder class.

ErrorFromException ( Exception exception, string &component ) : AirbrakeError

Creates a AirbrakeError from the the specified exception.

Notice ( AirbrakeError error, string>.IEnumerable extraParams = null, string component = null ) : AirbrakeNotice

Creates a AirbrakeNotice from the the specified error.

Notice ( Exception exception, string>.IEnumerable extraParams = null ) : AirbrakeNotice

Creates a AirbrakeNotice from the the specified exception.

Private Methods

Method Description
BuildBacktrace ( Exception exception, string &component ) : IEnumerable
BuildCgiData ( System.Web.HttpRequestBase request ) : IEnumerable
BuildParams ( System.Web.HttpRequestBase request, string>.IEnumerable extraParams ) : IEnumerable
BuildSession ( System.Web.HttpSessionStateBase session ) : IEnumerable
GetMethodName ( MethodBase method ) : string

Method Details

AirbrakeNoticeBuilder() public method

Initializes a new instance of the AirbrakeNoticeBuilder class.
public AirbrakeNoticeBuilder ( AirbrakeConfiguration configuration ) : System
configuration AirbrakeConfiguration The configuration.
return System

ErrorFromException() public method

Creates a AirbrakeError from the the specified exception.
public ErrorFromException ( Exception exception, string &component ) : AirbrakeError
exception System.Exception The exception.
component string component where the error occured, extracted from stack trace
return SharpBrake.Mvc.Serialization.AirbrakeError

Notice() public method

Creates a AirbrakeNotice from the the specified error.
public Notice ( AirbrakeError error, string>.IEnumerable extraParams = null, string component = null ) : AirbrakeNotice
error SharpBrake.Mvc.Serialization.AirbrakeError The error.
extraParams string>.IEnumerable Extra data for logging in params
component string Component where the error occured
return SharpBrake.Mvc.Serialization.AirbrakeNotice

Notice() public method

Creates a AirbrakeNotice from the the specified exception.
public Notice ( Exception exception, string>.IEnumerable extraParams = null ) : AirbrakeNotice
exception System.Exception The exception.
extraParams string>.IEnumerable extra data for adding the params in airbrake notice
return SharpBrake.Mvc.Serialization.AirbrakeNotice