Class SecurityException
Thrown when a security policy violation is detected — for example, when an outbound request is found to contain secrets or when a prompt injection is identified.
public sealed class SecurityException : Exception, ISerializable
- Inheritance
-
SecurityException
- Implements
- Inherited Members
Constructors
SecurityException()
Initializes a new instance of the Exception class.
public SecurityException()
SecurityException(string)
Initializes a new instance of the Exception class with a specified error message.
public SecurityException(string message)
Parameters
messagestringThe message that describes the error.
SecurityException(string, Exception)
Initializes a new instance of the Exception 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)