Class AvroSchemaException
- Namespace
- AvroSharp
- Assembly
- AvroSharp.dll
Raised when a schema is invalid, either while parsing schema JSON or while constructing a schema in code.
public class AvroSchemaException : AvroException, ISerializable
- Inheritance
-
AvroSchemaException
- Implements
- Inherited Members
Constructors
- AvroSchemaException()
Initializes a new instance of the AvroSchemaException class.
- AvroSchemaException(string)
Initializes a new instance of the AvroSchemaException class with a message.
- AvroSchemaException(string, Exception?)
Initializes a new instance of the AvroSchemaException class with a message and an inner exception.
- AvroSchemaException(string, string?, long?, long?, Exception?)
Initializes a new instance of the AvroSchemaException class with location information.
Properties
- BytePositionInLine
Gets the 1-based UTF-8 byte column of the offending element, when known.
- LineNumber
Gets the 1-based line number of the offending element, when known.
- Path
Gets the JSON path of the offending element (for example
$.fields[2].type), when known.
- Reason
Gets the error message without location information.