Class ForbiddenException
This exception is thrown when a user request a resource but does not have the right to access it.
Inheritance
ForbiddenException
Syntax
[Serializable]
[ServiceError(ServiceError.Code.AuthForbidden, HttpStatusCode.Forbidden)]
public class ForbiddenException : ServiceException, ISerializable, _Exception
Constructors
ForbiddenException()
Declaration
public ForbiddenException()
ForbiddenException(SerializationInfo, StreamingContext)
Declaration
protected ForbiddenException(SerializationInfo info, StreamingContext context)
Parameters
ForbiddenException(String)
Declaration
public ForbiddenException(string msg)
Parameters
Type |
Name |
Description |
String |
msg |
|
ForbiddenException(String, Exception)
Declaration
public ForbiddenException(string message, Exception innerException)
Parameters
ForbiddenException(ServiceError)
Declaration
public ForbiddenException(ServiceError error)
Parameters