Bugsnag.Library.BugSnag.Notify C# (CSharp) Метод

Notify() публичный Метод

Report a single exception to BugSnag using defaults
public Notify ( System ex, object extraData ) : void
ex System The exception to report
extraData object Data that will be sent as meta-data along with this error
Результат void
        public void Notify(System.Exception ex, object extraData)
        {
            Notify(ex, string.Empty, string.Empty, extraData);
        }

Same methods

BugSnag::Notify ( ) : void
BugSnag::Notify ( List exList, object extraData ) : void
BugSnag::Notify ( List exList, string userId, string context, object extraData ) : void
BugSnag::Notify ( System ex, string userId, string context, object extraData ) : void
BugSnag::Notify ( object extraData ) : void

Usage Example

Пример #1
0
        //  Added for the BugSnag sample web application
        protected void Application_Error(object sender, EventArgs e)
        {
            //  Create a new BugSnag notifier
            BugSnag bs = new BugSnag();

            //  Notify.  This will get configuration from the web.config
            //  and gather all known errors and report them.  It's just that simple!
            bs.Notify();
        }