Class InvalidTrackException
- Namespace
- Nyra.Exceptions
- Assembly
- Nyra.dll
A malformed or unsupported encoded track.
public sealed class InvalidTrackException : NyraException, ISerializable
- Inheritance
-
InvalidTrackException
- Implements
- Inherited Members
Remarks
Throw sites attach what they evaluated, ByteOffset and PayloadLength are structured where the message alone would lose them. Offsets and lengths count bytes of the decoded payload, zero-based, the four-byte header at offset 0, inner reader diagnostics count bytes of the delimited message (after any legacy trailer trim) or of the individual string.
Constructors
InvalidTrackException(string, Exception?, int?, int?)
Creates the exception.
public InvalidTrackException(string message, Exception? innerException = null, int? byteOffset = null, int? payloadLength = null)
Parameters
messagestringThe message that describes the error.
innerExceptionExceptionThe exception that caused this one, null when there is none.
byteOffsetint?The byte offset the failure was evaluated at, null when the site had none.
payloadLengthint?The length of the payload being read, null when the site had none.
Properties
ByteOffset
The byte offset the failure was evaluated at, null when the site had none.
public int? ByteOffset { get; }
Property Value
- int?
PayloadLength
The length of the payload being read, null when the site had none.
public int? PayloadLength { get; }
Property Value
- int?