SaaS CMS has officially launched! Learn more now.

Class AccessDeniedException

Implements exception code for access denied exceptions.

Inheritance
System.Object
AccessDeniedException
Namespace: Mediachase.Commerce.Security
Assembly: Mediachase.Commerce.dll
Version: 11.8.3
Syntax
public class AccessDeniedException : EPiServerException

Constructors

AccessDeniedException()

Initializes a new instance of the AccessDeniedException class.

Declaration
public AccessDeniedException()

AccessDeniedException(SerializationInfo, StreamingContext)

Initializes a new instance of the AccessDeniedException class.

Declaration
protected AccessDeniedException(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
System.Runtime.Serialization.SerializationInfo info

The System.Runtime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown.

System.Runtime.Serialization.StreamingContext context

The System.Runtime.Serialization.StreamingContext that contains contextual information about the source or destination.

Exceptions
Type Condition
System.ArgumentNullException

The info parameter is null.

System.Runtime.Serialization.SerializationException

The class name is null or System.Exception.HResult is zero (0).

AccessDeniedException(String)

Initializes a new instance of the AccessDeniedException class.

Declaration
public AccessDeniedException(string message)
Parameters
Type Name Description
System.String message

The message.

AccessDeniedException(String, Exception)

Initializes a new instance of the AccessDeniedException class.

Declaration
public AccessDeniedException(string message, Exception inner)
Parameters
Type Name Description
System.String message

The message.

System.Exception inner

The inner.