Skip to main content

SecretAttributeNotQueryableException

Namespace: Meshmakers.Octo.Runtime.Contracts.Secrets

Thrown when a query touches a Secret attribute (AB#5528, concept §4.4) with anything other than an IS_NULL / IS_NOT_NULL field filter: comparison operators, sort, attribute (text) search, aggregations and group-by are refused, because they would either compare ciphertext (meaningless) or reveal something about the plaintext.

public sealed class SecretAttributeNotQueryableException : PersistenceException, ISerializable

Inheritance Object → Exception → PersistenceException → SecretAttributeNotQueryableException
Implements ISerializable

Remarks:

Defined in the engine contracts so every repository implementation throws the same type and the API layer can map it to the error code SecretAttributeNotQueryable. The message never contains a value.

Properties​

AttributePath​

The attribute path of the Secret attribute.

public string AttributePath { get; }

Property Value​

String

Operation​

What was attempted with the attribute.

public string Operation { get; }

Property Value​

String

EntityName​

The CK type or record the path was resolved against.

public string EntityName { get; }

Property Value​

String

TargetSite​

public MethodBase TargetSite { get; }

Property Value​

MethodBase

Message​

public string Message { get; }

Property Value​

String

Data​

public IDictionary Data { get; }

Property Value​

IDictionary

InnerException​

public Exception InnerException { get; }

Property Value​

Exception

public string HelpLink { get; set; }

Property Value​

String

Source​

public string Source { get; set; }

Property Value​

String

HResult​

public int HResult { get; set; }

Property Value​

Int32

StackTrace​

public string StackTrace { get; }

Property Value​

String

Constructors​

SecretAttributeNotQueryableException(String, String, String)​

Creates a new instance.

public SecretAttributeNotQueryableException(string attributePath, string operation, string entityName)

Parameters​

attributePath String
The attribute path of the Secret attribute

operation String
What was attempted, e.g. filter operator 'Equals' or sort

entityName String
The CK type or record the path was resolved against