ApiControllerExtensions.ThrowHttpException

Turn a regular exception into an ApiMessageError exception to display for the client.

public static void ThrowHttpException(ApiController controller,
	HttpStatusCode statusCode,
	Exception ex)

Parameters

controller

statusCode

ex

Overloads:


See also:

Class ApiControllerExtensions

© West Wind Technologies, 1996-2016 • Updated: 12/12/15
Comment or report problem with topic