Show / Hide Table of Contents

Class SchemaViolationException

Exception thrown when there is an error validating a title configuration against the schema.

Inheritance
object
Exception
ConfigurationException
SchemaViolationException
Implements
ISerializable
Inherited Members
Exception.GetBaseException()
Exception.GetType()
Exception.ToString()
Exception.Data
Exception.HelpLink
Exception.HResult
Exception.InnerException
Exception.Message
Exception.Source
Exception.StackTrace
Exception.TargetSite
Exception.SerializeObjectState
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: CrashCABN.JsonSchema
Assembly: CrashCABN.JsonSchema.dll
Syntax
public class SchemaViolationException : ConfigurationException, ISerializable

Constructors

View Source

SchemaViolationException()

Initializes a new instance of the SchemaViolationException class.

Declaration
public SchemaViolationException()
View Source

SchemaViolationException(string)

Initializes a new instance of the SchemaViolationException class.

Declaration
public SchemaViolationException(string message)
Parameters
Type Name Description
string message

The message that describes the error.

View Source

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
string message

The message that describes the error.

JToken jsonToken

The json token that violated the schema.

IEnumerable<string> violationMessages

The details of the schema violations.

View Source

SchemaViolationException(string, Exception)

Initializes a new instance of the SchemaViolationException class.

Declaration
public SchemaViolationException(string message, Exception innerException)
Parameters
Type Name Description
string message

The message that describes the error.

Exception innerException

The exception that is the cause of the current exception, or a null reference if no inner exception is specified.

Properties

View Source

Violations

Gets the list of schema violations if available.

Declaration
public IEnumerable<string>? Violations { get; }
Property Value
Type Description
IEnumerable<string>

Implements

ISerializable
  • View Source
In this article
Back to top Generated by DocFX