C# Class Customer.Project.Mvc.Instrumentation.Report

Datei anzeigen Open project: atosorigin/AtosMvcStarterKit

Public Methods

Method Description
Error ( BaseController controller, Exception ex, string prefix ) : void

Logs error to IFormatLogger and Elmah and adds a non descriptive error message to the modelstate

Error ( BaseController controller, string errorDescription ) : void

Logs error to IFormatLogger and Elmah and adds a non descriptive error message to the modelstate

LogAndRaiseErrorImplementation ( string errorDescription ) : void
LogInfo ( Exception ex, string prefix ) : void

Logs error to IFormatLogger and Elmah

ReportAuthorizationError ( this controller ) : void
ReturnJsonAuthorizationError ( this controller ) : object

Private Methods

Method Description
LogAndRaiseAuthorizationError ( BaseController controller ) : void

Method Details

Error() public static method

Logs error to IFormatLogger and Elmah and adds a non descriptive error message to the modelstate
public static Error ( BaseController controller, Exception ex, string prefix ) : void
controller Customer.Project.Mvc.Controllers.BaseController
ex System.Exception
prefix string
return void

Error() public static method

Logs error to IFormatLogger and Elmah and adds a non descriptive error message to the modelstate
public static Error ( BaseController controller, string errorDescription ) : void
controller Customer.Project.Mvc.Controllers.BaseController
errorDescription string
return void

LogAndRaiseErrorImplementation() public static method

public static LogAndRaiseErrorImplementation ( string errorDescription ) : void
errorDescription string
return void

LogInfo() public static method

Logs error to IFormatLogger and Elmah
public static LogInfo ( Exception ex, string prefix ) : void
ex System.Exception
prefix string
return void

ReportAuthorizationError() public static method

public static ReportAuthorizationError ( this controller ) : void
controller this
return void

ReturnJsonAuthorizationError() public static method

public static ReturnJsonAuthorizationError ( this controller ) : object
controller this
return object