Class GuardrailLoadException
- Namespace
- IntentSharp.Guardrails
- Assembly
- IntentSharp.Guardrails.dll
Thrown when rule files cannot be used: by ParseOrThrow(IReadOnlyList<KeyValuePair<string, string>>, GuardrailSourceOptions?) when a document does not load,
and by Current when a pinned document's hash differs from the expected one or the
store could not be read at the first load. The message lists every problem as path:line: message.
public sealed class GuardrailLoadException : IntentSharpException, ISerializable
- Inheritance
-
objectExceptionGuardrailLoadException
- Implements
-
ISerializable
- Inherited Members
-
Exception.GetBaseException()Exception.GetType()Exception.ToString()Exception.DataException.HelpLinkException.HResultException.InnerExceptionException.MessageException.SourceException.StackTraceException.TargetSiteobject.Equals(object)object.Equals(object, object)object.GetHashCode()object.ReferenceEquals(object, object)
- Extension Methods
Constructors
- GuardrailLoadException(IReadOnlyList<DocumentProblem>)
Creates the exception for documents that did not load.
- GuardrailLoadException(IReadOnlyList<DocumentProblem>, Exception)
Creates the exception for documents that could not be used, with the exception that caused it.
Properties
- Problems
The problems, each with its document and, when known, its line.