Class ForbiddenException
Represents an exception that is thrown when a request is forbidden due to lack of access permissions.
public class ForbiddenException : Exception, ISerializable, _Exception
- Inheritance
-
ForbiddenException
- Implements
- Inherited Members
Constructors
ForbiddenException()
Initializes a new instance of the ForbiddenException class.
public ForbiddenException()
ForbiddenException(string)
Initializes a new instance of the ForbiddenException class with a specified error message.
public ForbiddenException(string message)
Parameters
message
stringThe error message that explains the reason for the exception.
ForbiddenException(string, Exception)
Initializes a new instance of the ForbiddenException class with a specified error message and a reference to the inner exception that is the cause of this exception.
public ForbiddenException(string message, Exception inner)