Class XapiValidationException
- Namespace
- Xapi
- Assembly
- Xapi.Core.dll
Thrown at API edges (for example GetValueOrThrow) when xAPI data is invalid.
public sealed class XapiValidationException : Exception, ISerializable
- Inheritance
-
XapiValidationException
- Implements
- Inherited Members
Constructors
XapiValidationException()
Creates an exception with a generic message and no errors.
public XapiValidationException()
XapiValidationException(IReadOnlyList<XapiError>)
Creates an exception from a list of errors. The message lists the first few.
public XapiValidationException(IReadOnlyList<XapiError> errors)
Parameters
errorsIReadOnlyList<XapiError>The errors.
XapiValidationException(string)
Creates an exception with a message and no errors.
public XapiValidationException(string message)
Parameters
messagestringThe message.
XapiValidationException(string, Exception)
Creates an exception with a message, no errors and an inner exception.
public XapiValidationException(string message, Exception innerException)
Parameters
Properties
Errors
The errors that caused the exception.
public IReadOnlyList<XapiError> Errors { get; }