Table of Contents

Class SecurityException

Namespace
JD.AI.Core.Security
Assembly
JD.AI.Core.dll

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

message string

The 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)

Parameters

message string

The error message that explains the reason for the exception.

inner Exception