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:
public static void ThrowHttpException(ApiController controller, HttpStatusCode statusCode, string message)
public static void ThrowHttpException(ApiController controller, HttpStatusCode statusCode)
See also:
Class ApiControllerExtensions© West Wind Technologies, 1996-2016 • Updated: 12/12/15
Comment or report problem with topic