Show / Hide Table of Contents

Class ForbiddenException

Defines an exception class for the HTTP error Forbidden.

Inheritance
System.Object
System.Exception
WebApiException
ClientErrorException
ForbiddenException
Implements
System.Runtime.Serialization.ISerializable
Inherited Members
ClientErrorException.ToClientErrorResponse()
ClientErrorException.ToString()
ClientErrorException.Error
ClientErrorException.Errors
WebApiException.SetServiceName(String)
WebApiException.ServiceStack
WebApiException.StatusCode
System.Exception.GetBaseException()
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Exception.GetType()
System.Exception.Data
System.Exception.HelpLink
System.Exception.HResult
System.Exception.InnerException
System.Exception.Message
System.Exception.Source
System.Exception.StackTrace
System.Exception.TargetSite
System.Exception.SerializeObjectState
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Juhta.Net.WebApi.Exceptions.ClientErrors
Assembly: Juhta.Net.WebApi.Exceptions.dll
Syntax
public class ForbiddenException : ClientErrorException, ISerializable

Constructors

| Improve this Doc View Source

ForbiddenException()

Initializes a new instance.

Declaration
public ForbiddenException()
| Improve this Doc View Source

ForbiddenException(ClientError)

Initializes a new instance.

Declaration
public ForbiddenException(ClientError clientError)
Parameters
Type Name Description
ClientError clientError

Specifies a client error.

| Improve this Doc View Source

ForbiddenException(IEnumerable<ClientError>)

Initializes a new instance.

Declaration
public ForbiddenException(IEnumerable<ClientError> clientErrors)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<ClientError> clientErrors

Specifies a collection of client errors.

| Improve this Doc View Source

ForbiddenException(Enum)

Initializes a new instance.

Declaration
public ForbiddenException(Enum errorCode)
Parameters
Type Name Description
System.Enum errorCode

Specifies a custom-defined error code.

| Improve this Doc View Source

ForbiddenException(Enum, Enum)

Initializes a new instance.

Declaration
public ForbiddenException(Enum errorCode, Enum field)
Parameters
Type Name Description
System.Enum errorCode

Specifies a custom-defined error code.

System.Enum field

Specifies a field to which the error relates.

| Improve this Doc View Source

ForbiddenException(Enum, Enum, String)

Initializes a new instance.

Declaration
public ForbiddenException(Enum errorCode, Enum field, string message)
Parameters
Type Name Description
System.Enum errorCode

Specifies a custom-defined error code.

System.Enum field

Specifies a field to which the error relates.

System.String message

Specifies an error message.

| Improve this Doc View Source

ForbiddenException(Enum, Enum, String, String)

Initializes a new instance.

Declaration
public ForbiddenException(Enum errorCode, Enum field, string message, string helpUrl)
Parameters
Type Name Description
System.Enum errorCode

Specifies a custom-defined error code.

System.Enum field

Specifies a field to which the error relates.

System.String message

Specifies an error message.

System.String helpUrl

Specifies a URL that provides extra information about the error.

| Improve this Doc View Source

ForbiddenException(Enum, String)

Initializes a new instance.

Declaration
public ForbiddenException(Enum errorCode, string message)
Parameters
Type Name Description
System.Enum errorCode

Specifies a custom-defined error code.

System.String message

Specifies an error message.

| Improve this Doc View Source

ForbiddenException(Enum, String, String)

Initializes a new instance.

Declaration
public ForbiddenException(Enum errorCode, string field, string message)
Parameters
Type Name Description
System.Enum errorCode

Specifies a custom-defined error code.

System.String field

Specifies a field to which the error relates.

System.String message

Specifies an error message.

| Improve this Doc View Source

ForbiddenException(Enum, String, String, String)

Initializes a new instance.

Declaration
public ForbiddenException(Enum errorCode, string field, string message, string helpUrl)
Parameters
Type Name Description
System.Enum errorCode

Specifies a custom-defined error code.

System.String field

Specifies a field to which the error relates.

System.String message

Specifies an error message.

System.String helpUrl

Specifies a URL that provides extra information about the error.

| Improve this Doc View Source

ForbiddenException(String)

Initializes a new instance.

Declaration
public ForbiddenException(string message)
Parameters
Type Name Description
System.String message

Specifies an error message.

| Improve this Doc View Source

ForbiddenException(String, String)

Initializes a new instance.

Declaration
public ForbiddenException(string message, string helpUrl)
Parameters
Type Name Description
System.String message

Specifies an error message.

System.String helpUrl

Specifies a URL that provides extra information about the error.

Implements

System.Runtime.Serialization.ISerializable
  • Improve this Doc
  • View Source
Back to top Copyright © 2017-2019 Juha Lähteenmäki
Generated by DocFX