C# Class Pepino.Infrastructure.RestExceptions.BadRequestExceptionRepackager

Inheritance: IExceptionRepackager
Mostra file Open project: AcklenAvenue/Pepino

Public Methods

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

Method Details

CanHandle() public method

public CanHandle ( Exception ex, string contentType ) : bool
ex 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