C# Класс 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.
Наследование: System.Web.Http.ExceptionHandling.ExceptionHandler
Показать файл Открыть проект

Открытые методы

Метод Описание
Handle ( System.Web.Http.ExceptionHandling.ExceptionHandlerContext context ) : void

Приватные методы

Метод Описание
IsEditorOrAdmin ( IPrincipal user ) : bool
ShowDetailedError ( ) : bool

Описание методов

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

public Handle ( System.Web.Http.ExceptionHandling.ExceptionHandlerContext context ) : void
context System.Web.Http.ExceptionHandling.ExceptionHandlerContext
Результат void