Throws a safe exception that results in a consistent error message being returned.
public static void ThrowHttpException(ApiController controller, HttpStatusCode statusCode, string message)
Parameters
controller
statusCode
message
Overloads:
public static void ThrowHttpException(ApiController controller, HttpStatusCode statusCode, Exception ex)
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