C# Class Airbrake.ExceptionHandler

Airbrake API compatible exception handler for C# First published on Sep 12, 2012 at: https://github.com/atech/airbrake-dotnet
Datei anzeigen Open project: atech/airbrake-dotnet

Private Properties

Property Type Description
GetXML System.Xml.XmlDocument
ParseBacktrace List

Public Methods

Method Description
ExceptionHandler ( bool ssl, string host, string path, string apikey, string environment ) : System

Initializes a new instance of the ExceptionHandler class.

Send ( Exception ex, string>.List customParams = null ) : bool

Sends the specified exception to the server.

Private Methods

Method Description
GetXML ( Exception ex, string>.List customParams = null ) : XmlDocument

Renders an exception (and custom parameters) into an XML blob conforming to the Airbrake API specification.

ParseBacktrace ( XmlDocument doc, string stack ) : List

Parses the back trace string from an exception into an XML document.

Method Details

ExceptionHandler() public method

Initializes a new instance of the ExceptionHandler class.
public ExceptionHandler ( bool ssl, string host, string path, string apikey, string environment ) : System
ssl bool if set to true [SSL].
host string The host.
path string The path.
apikey string The API key.
environment string The environment.
return System

Send() public method

Sends the specified exception to the server.
public Send ( Exception ex, string>.List customParams = null ) : bool
ex System.Exception The raw exception to report.
customParams string>.List The custom parameters that should be sent with the exception.
return bool