AccessException

Exception
public sealed class AccessException : Exception
Type of exception thrown when the access level for data in a parameter doesn't match with the predefined level.

Constructors

AccessException

#
public AccessException()

AccessException

#
public AccessException(string message, Exception innerException)
message (string)
innerException (Exception)

AccessException

#
public AccessException(string message)
message (string)

AccessException

#
public AccessException(string methodName, Access required, Access invoked)
Create a new AccessException.
methodName (string)
required (Access)
invoked (Access)

Properties

InvokedAccess

#
public Access InvokedAccess { get; }
Gets the access invoked by the caller.

RequiredAccess

#
public Access RequiredAccess { get; }
Gets the access as specified by the parameter.