ApiController.InternalServerError ApiController.InternalServerError ApiController.InternalServerError ApiController.InternalServerError Method

Definition

Overloads

InternalServerError() InternalServerError() InternalServerError() InternalServerError()

Creates an InternalServerErrorResult (500 Internal Server Error).

InternalServerError(Exception) InternalServerError(Exception) InternalServerError(Exception)

Creates an ExceptionResult (500 Internal Server Error) with the specified exception.

InternalServerError() InternalServerError() InternalServerError() InternalServerError()

Creates an InternalServerErrorResult (500 Internal Server Error).

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

Returns

InternalServerError(Exception) InternalServerError(Exception) InternalServerError(Exception)

Creates an ExceptionResult (500 Internal Server Error) with the specified exception.

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

Parameters

exception
Exception Exception Exception Exception

The exception to include in the error.

Returns

Applies to