SecurityException Class

Definition

The exception that is thrown when a security error is detected.

[ComVisible(true)]
[Serializable]
public class SecurityException : SystemException, ISerializable, _Exception
Inheritance
SecurityException

Inherited Members

System.Exception

System.Object

Constructors

SecurityException()

Initializes a new instance of the SecurityException class with default properties.

public SecurityException()

SecurityException(String)

Initializes a new instance of the SecurityException class with a specified error message.

public SecurityException(string message)
Parameters
message
String

The error message that explains the reason for the exception.

SecurityException(String, Exception)

Initializes a new instance of the SecurityException class with a specified error message and a reference to the inner exception that is the cause of this exception.

public SecurityException(string message, Exception inner)
Parameters
message
String

The error message that explains the reason for the exception.

inner
Exception

The exception that is the cause of the current exception. If the inner parameter is not null, the current exception is raised in a catch block that handles the inner exception.

See Also

Methods

ToString()

Returns a representation of the current SecurityException.

public override string ToString()
Returns

A string representation of the current SecurityException.

Overrides

See Also