C# 클래스 Sakura.AspNetCore.Mvc.ActionResultException

Represent as a special exception used to return an IActionResult directly during the MVC executing pipeline.
To enable this special action, please mark EnableActionResultExceptionAttribute on a controller or action, or register it globally in your MVC configuration code.
상속: System.Exception
파일 보기 프로젝트 열기: sgjsakura/AspNetCore

공개 메소드들

메소드 설명
ActionResultException ( HttpStatusCode statusCode ) : System

Create a new ActionResultException with specified HTTP status code.

ActionResultException ( HttpStatusCode statusCode, object value ) : System

Create a new ActionResultException with specified HTTP status code and content.

ActionResultException ( IActionResult result ) : System

Initialize a new ActionResultException with specified IActionResult.

ActionResultException ( int statusCode ) : System

Create a new ActionResultException with specified HTTP status code.

ActionResultException ( int statusCode, object value ) : System

Create a new ActionResultException with specified HTTP status code and content.

ActionResultException ( string message, Exception inner, IActionResult result ) : System

Initialize a new ActionResultException with specified IActionResult and information.

ActionResultException ( string message, IActionResult result ) : System

Initialize a new ActionResultException with specified IActionResult and message.

메소드 상세

ActionResultException() 공개 메소드

Create a new ActionResultException with specified HTTP status code.
public ActionResultException ( HttpStatusCode statusCode ) : System
statusCode HttpStatusCode The value of the HTTP status code.
리턴 System

ActionResultException() 공개 메소드

Create a new ActionResultException with specified HTTP status code and content.
public ActionResultException ( HttpStatusCode statusCode, object value ) : System
statusCode HttpStatusCode The value of the HTTP status code.
value object The result content object.
리턴 System

ActionResultException() 공개 메소드

Initialize a new ActionResultException with specified IActionResult.
public ActionResultException ( IActionResult result ) : System
result IActionResult The object which will be returned when this exception is handled.
리턴 System

ActionResultException() 공개 메소드

Create a new ActionResultException with specified HTTP status code.
public ActionResultException ( int statusCode ) : System
statusCode int The value of the HTTP status code.
리턴 System

ActionResultException() 공개 메소드

Create a new ActionResultException with specified HTTP status code and content.
public ActionResultException ( int statusCode, object value ) : System
statusCode int The value of the HTTP status code.
value object The result content object.
리턴 System

ActionResultException() 공개 메소드

Initialize a new ActionResultException with specified IActionResult and information.
public ActionResultException ( string message, Exception inner, IActionResult result ) : System
message string The message for this exception.
inner System.Exception The inner exception for this exception.
result IActionResult The object which will be returned when this exception is handled.
리턴 System

ActionResultException() 공개 메소드

Initialize a new ActionResultException with specified IActionResult and message.
public ActionResultException ( string message, IActionResult result ) : System
message string The message for this exception.
result IActionResult The object which will be returned when this exception is handled.
리턴 System