Class ForbbidenException
- Namespace
- adas_core.Application.Exceptions
- Assembly
- adas-core.Application.dll
Represents an exception that is thrown when an operation is forbidden or access to a resource is denied.
public class ForbbidenException : Exception, ISerializable
- Inheritance
-
ForbbidenException
- Implements
- Inherited Members
- Extension Methods
Remarks
This exception is intended to signal that a requested action violates access rules or restrictions, allowing callers to handle forbidden scenarios distinctly from other error conditions.
Constructors
ForbbidenException(string)
Initializes a new instance of the ForbbidenException class with a specified error message.
public ForbbidenException(string message)
Parameters
messagestringThe message that describes the error.
ForbbidenException(ErrorMessage)
Initializes a new instance of the ForbbidenException class with a specified error message from the HttpEnum.ErrorMessage enumeration.
public ForbbidenException(HttpEnum.ErrorMessage message)
Parameters
messageHttpEnum.ErrorMessageThe HttpEnum.ErrorMessage enumeration value whose integer representation is used as the exception message.