Class ApiControllerExtensions
System.Object
  System.Web.Http.ApiControllerExtensions
public static class ApiControllerExtensions : object

Class Members

MemberDescription

ThrowHttpException

Throws a safe exception that results in a consistent error message being returned.

public static void ThrowHttpException(ApiController controller,     HttpStatusCode statusCode,     string message)

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

public static void ThrowHttpException(ApiController controller,     HttpStatusCode statusCode)

Requirements

Namespace: System.Web.Http
Assembly: westwind.web.webapi.dll

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