SecretValueNotStorableException
Namespace: Meshmakers.Octo.Runtime.Contracts.Secrets
Thrown by a repository when an RtSecretValue that cannot be persisted is about to be written (AB#5528, concept §3.3 / §8 "write paths that skip encryption"). A RtSecretValueState.Pending value is a plaintext the engine write step has not encrypted; refusing it keeps plaintext out of the database even when a write path forgets the protector.
public sealed class SecretValueNotStorableException : InvalidOperationException, ISerializable
Inheritance Object → Exception → SystemException → InvalidOperationException → SecretValueNotStorableException
Implements ISerializable
Remarks:
The message never contains the value.
Properties
State
State of the refused value.
public RtSecretValueState State { get; }
Property Value
TargetSite
public MethodBase TargetSite { get; }
Property Value
Message
public string Message { get; }
Property Value
Data
public IDictionary Data { get; }
Property Value
InnerException
public Exception InnerException { get; }
Property Value
HelpLink
public string HelpLink { get; set; }
Property Value
Source
public string Source { get; set; }
Property Value
HResult
public int HResult { get; set; }
Property Value
StackTrace
public string StackTrace { get; }
Property Value
Constructors
SecretValueNotStorableException(RtSecretValueState)
Creates a new instance.
public SecretValueNotStorableException(RtSecretValueState state)
Parameters
state RtSecretValueState
State of the refused value