C# Class Pepino.Infrastructure.RestExceptions.InternalServerExceptionRepackager

Inheritance: IExceptionRepackager
Exibir arquivo Open project: AcklenAvenue/Pepino

Public Methods

Method Description
CanHandle ( Exception exception, string contentType ) : bool
Repackage ( Exception exception, Nancy.NancyContext context, string contentType ) : ErrorResponse

Private Methods

Method Description
AddException ( Exception ex ) : string

Method Details

CanHandle() public method

public CanHandle ( Exception exception, string contentType ) : bool
exception System.Exception
contentType string
return bool

Repackage() public method

public Repackage ( Exception exception, Nancy.NancyContext context, string contentType ) : ErrorResponse
exception System.Exception
context Nancy.NancyContext
contentType string
return ErrorResponse