Show / Hide Table of Contents

Class ForbiddenException

Contains 403(forbidden) HTTP client error code details that result from a call to a Web API.

Inheritance
System.Object
ApiException<ForbiddenErrorInfo>
ForbiddenException
Inherited Members
ApiException<ForbiddenErrorInfo>.ErrorInfo
ApiException<ForbiddenErrorInfo>.HttpErrorCode
ApiException<ForbiddenErrorInfo>.Message
ApiException<ForbiddenErrorInfo>.DefaultApiErrorMessage
ApiException<ForbiddenErrorInfo>.GetApiErrorInfo(String)
Namespace: DNVGL.One.Compute.Platform.Client.Exceptions
Assembly: DNVGL.One.Compute.Platform.Client.dll
Syntax
public class ForbiddenException : ApiException<ForbiddenErrorInfo>

Constructors

View Source

ForbiddenException(ForbiddenErrorInfo)

Initializes a new instance of the ForbiddenException class with a specified ForbiddenErrorInfo error info.

Declaration
public ForbiddenException(ForbiddenErrorInfo errorInfo)
Parameters
Type Name Description
ForbiddenErrorInfo errorInfo

The message that explains the reason for the exception.

View Source

ForbiddenException(ForbiddenErrorInfo, Exception)

Initializes a new instance of the ForbiddenException class with a specified ForbiddenErrorInfo error info.

Declaration
public ForbiddenException(ForbiddenErrorInfo errorInfo, Exception innerException)
Parameters
Type Name Description
ForbiddenErrorInfo errorInfo

The message that explains the reason for the exception.

Exception innerException

The exception that is the cause of the current exception.If the innerException parameter is not a null reference, the current exception is raised in a catch block that handles the inner exception.

  • View Source
In This Article
Back to top Copyright © DNV AS. All rights reserved.