C# Class Solita.Episerver.WebApi.EpiserverWebApiErrorHandler

Logs all expections using EPiServer.Logging.ILogger. The handler returns HTTP 500 status with a message "An error has occurred" for end users. But for admin/editor/locahost users the full exception is displayed to ease debugging.
Inheritance: System.Web.Http.ExceptionHandling.ExceptionHandler
Afficher le fichier Open project: solita/episerver-webapi

Méthodes publiques

Méthode Description
Handle ( System.Web.Http.ExceptionHandling.ExceptionHandlerContext context ) : void

Private Methods

Méthode Description
IsEditorOrAdmin ( IPrincipal user ) : bool
ShowDetailedError ( ) : bool

Method Details

Handle() public méthode

public Handle ( System.Web.Http.ExceptionHandling.ExceptionHandlerContext context ) : void
context System.Web.Http.ExceptionHandling.ExceptionHandlerContext
Résultat void