Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ApiController::InternalServerError Method

 

Namespace:   System.Web.Http
Assembly:  System.Web.Http (in System.Web.Http.dll)

NameDescription
System_CAPS_protmethodInternalServerError()

Creates an InternalServerErrorResult (500 Internal Server Error).

System_CAPS_protmethodInternalServerError(Exception^)

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

Return to top

ApiController::InternalServerError Method ()

Creates an InternalServerErrorResult (500 Internal Server Error).

public protected:
virtual InternalServerErrorResult^ InternalServerError()
Return to top

ApiController::InternalServerError Method (Exception^)

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

public protected:
virtual ExceptionResult^ InternalServerError(
	Exception^ exception
)

Parameters

exception
Type: System::Exception^

The exception to include in the error.

Return Value

Type: System.Web.Http.Results::ExceptionResult^

An ExceptionResult with the specified exception.

Return to top
Show: