C# Class JsonFx.Mvc.ErrorResult

An action result for returning a custom non-UI error status.
Inheritance: HttpResult
Afficher le fichier Open project: pocket-playlab/jsonfx-v1

Méthodes publiques

Méthode Description
ErrorResult ( Exception ex ) : System

Ctor

Méthodes protégées

Méthode Description
EnsureException ( Exception ex ) : Exception

Ensures the exception is not null and unwraps standard wrapper exceptions

GetStatusCode ( Exception ex ) : HttpStatusCode

Determines the best HTTP status code for the exception

Method Details

EnsureException() protected méthode

Ensures the exception is not null and unwraps standard wrapper exceptions
protected EnsureException ( Exception ex ) : Exception
ex System.Exception
Résultat System.Exception

ErrorResult() public méthode

Ctor
public ErrorResult ( Exception ex ) : System
ex System.Exception
Résultat System

GetStatusCode() protected méthode

Determines the best HTTP status code for the exception
protected GetStatusCode ( Exception ex ) : HttpStatusCode
ex System.Exception
Résultat HttpStatusCode