Compartir a través de


ApiController.InternalServerError Método

Definición

Sobrecargas

InternalServerError()

Crea un InternalServerErrorResult (error interno del servidor 500).

InternalServerError(Exception)

Crea un ExceptionResult (error interno del servidor 500) con la excepción especificada.

InternalServerError()

Source:
ApiController.cs
Source:
ApiController.cs

Crea un InternalServerErrorResult (error interno del servidor 500).

[Microsoft.AspNetCore.Mvc.NonAction]
public virtual System.Web.Http.InternalServerErrorResult InternalServerError ();
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member InternalServerError : unit -> System.Web.Http.InternalServerErrorResult
override this.InternalServerError : unit -> System.Web.Http.InternalServerErrorResult
Public Overridable Function InternalServerError () As InternalServerErrorResult

Devoluciones

Un objeto InternalServerErrorResult.

Atributos

Se aplica a

InternalServerError(Exception)

Source:
ApiController.cs
Source:
ApiController.cs

Crea un ExceptionResult (error interno del servidor 500) con la excepción especificada.

[Microsoft.AspNetCore.Mvc.NonAction]
public virtual System.Web.Http.ExceptionResult InternalServerError (Exception exception);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member InternalServerError : Exception -> System.Web.Http.ExceptionResult
override this.InternalServerError : Exception -> System.Web.Http.ExceptionResult
Public Overridable Function InternalServerError (exception As Exception) As ExceptionResult

Parámetros

exception
Exception

La excepción que se va a incluir en el error.

Devoluciones

con ExceptionResult la excepción especificada.

Atributos

Se aplica a