Class ForbiddenException
Contains 403(forbidden) HTTP client error code details that result from a call to a Web API.
Inherited Members
Namespace: DNVGL.One.Compute.Platform.Client.Exceptions
Assembly: DNVGL.One.Compute.Platform.Client.dll
Syntax
public class ForbiddenException : ApiException<ForbiddenErrorInfo>
Constructors
View SourceForbiddenException(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. |
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. |