C# 클래스 JsonFx.Mvc.ErrorResult

An action result for returning a custom non-UI error status.
상속: HttpResult
파일 보기 프로젝트 열기: pocket-playlab/jsonfx-v1

공개 메소드들

메소드 설명
ErrorResult ( Exception ex ) : System

Ctor

보호된 메소드들

메소드 설명
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

메소드 상세

EnsureException() 보호된 메소드

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

ErrorResult() 공개 메소드

Ctor
public ErrorResult ( Exception ex ) : System
ex System.Exception
리턴 System

GetStatusCode() 보호된 메소드

Determines the best HTTP status code for the exception
protected GetStatusCode ( Exception ex ) : HttpStatusCode
ex System.Exception
리턴 HttpStatusCode