Class SelfReferencingJsonSchemaType

Namespace
Cratis.Chronicle.Schemas
Assembly
Cratis.Chronicle.dll

The exception that is thrown when a type adorned with JsonSchemaTypeAttribute points at itself.

public class SelfReferencingJsonSchemaType : Exception, ISerializable
Inheritance
SelfReferencingJsonSchemaType
Implements
Inherited Members
Extension Methods

Remarks

Initializes a new instance of the SelfReferencingJsonSchemaType class. Generating the schema for such a type would recurse forever, so it is rejected up front with a message naming the offending type rather than being left to overflow the stack.

Constructors

SelfReferencingJsonSchemaType(Type)

The exception that is thrown when a type adorned with JsonSchemaTypeAttribute points at itself.

public SelfReferencingJsonSchemaType(Type type)

Parameters

type Type

Type that represents itself.

Remarks

Initializes a new instance of the SelfReferencingJsonSchemaType class. Generating the schema for such a type would recurse forever, so it is rejected up front with a message naming the offending type rather than being left to overflow the stack.