C# Class Pepino.Infrastructure.RestExceptions.CommandValidationExceptionRepackager

Inheritance: IExceptionRepackager
Show file Open project: AcklenAvenue/Pepino

Public Methods

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

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