Class XapiParseResult<T>
The outcome of reading xAPI JSON: a value, or every error that was found.
public sealed class XapiParseResult<T>
Type Parameters
TThe model type.
- Inheritance
-
XapiParseResult<T>
- Inherited Members
Properties
Errors
All errors found; empty on success.
public IReadOnlyList<XapiError> Errors { get; }
Property Value
IsSuccess
Whether reading (and, in strict mode, validation) succeeded.
[MemberNotNullWhen(true, "Value")]
public bool IsSuccess { get; }
Property Value
Value
public T? Value { get; }
Property Value
- T
Methods
GetValueOrThrow()
Returns the value or throws.
public T GetValueOrThrow()
Returns
- T
The value.
Exceptions
- XapiValidationException
Reading failed; the exception carries Errors.