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)
| Name | Description | |
|---|---|---|
![]() | InternalServerError() | Creates an InternalServerErrorResult (500 Internal Server Error). |
![]() | InternalServerError(Exception^) | Creates an ExceptionResult (500 Internal Server Error) with the specified exception. |
ApiController::InternalServerError Method ()
Creates an InternalServerErrorResult (500 Internal Server Error).
ApiController::InternalServerError Method (Exception^)
Creates an ExceptionResult (500 Internal Server Error) with the specified 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.
Show:
