C# Class 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.
Inheritance: System.Exception
Mostrar archivo Open project: sgjsakura/AspNetCore

Public Methods

Method Description
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.

Method Details

ActionResultException() public method

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

ActionResultException() public method

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.
return System

ActionResultException() public method

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.
return System

ActionResultException() public method

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

ActionResultException() public method

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.
return System

ActionResultException() public method

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.
return System

ActionResultException() public method

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.
return System