Class SchemaViolationException
Exception thrown when there is an error validating a title configuration against the schema.
Inheritance
System.Object
System.Exception
SchemaViolationException
Implements
System.Runtime.Serialization.ISerializable
Inherited Members
System.Exception.GetBaseException()
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Exception.GetType()
System.Exception.ToString()
System.Exception.Data
System.Exception.HelpLink
System.Exception.HResult
System.Exception.InnerException
System.Exception.Message
System.Exception.Source
System.Exception.StackTrace
System.Exception.TargetSite
System.Exception.SerializeObjectState
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: CrashCABN.TitleConfiguration
Assembly: CrashCABN.TitleConfiguration.dll
Syntax
public class SchemaViolationException : Exception, ISerializable
Constructors
View SourceSchemaViolationException()
Initializes a new instance of the SchemaViolationException class.
Declaration
public SchemaViolationException()
SchemaViolationException(String)
Initializes a new instance of the SchemaViolationException class.
Declaration
public SchemaViolationException(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message that describes the error. |
SchemaViolationException(String, JToken, IEnumerable<String>)
Initializes a new instance of the SchemaViolationException class.
Declaration
public SchemaViolationException(string message, JToken jsonToken, IEnumerable<string> violationMessages)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message that describes the error. |
JToken | jsonToken | The json token that violated the schema. |
System.Collections.Generic.IEnumerable<System.String> | violationMessages | The details of the schema violations. |
SchemaViolationException(String, Exception)
Initializes a new instance of the SchemaViolationException class.
Declaration
public SchemaViolationException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message that describes the error. |
System.Exception | innerException | The exception that is the cause of the current exception, or a null reference if no inner exception is specified. |
Properties
View SourceViolations
Gets the list of schema violations if available.
Declaration
public IEnumerable<string> Violations { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.String> |
Implements
System.Runtime.Serialization.ISerializable