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
Показать файл Открыть проект

Открытые методы

Метод Описание
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