Table of Contents

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

errors IReadOnlyList<XapiError>

The errors.

XapiValidationException(string)

Creates an exception with a message and no errors.

public XapiValidationException(string message)

Parameters

message string

The message.

XapiValidationException(string, Exception)

Creates an exception with a message, no errors and an inner exception.

public XapiValidationException(string message, Exception innerException)

Parameters

message string

The message.

innerException Exception

The inner exception.

Properties

Errors

The errors that caused the exception.

public IReadOnlyList<XapiError> Errors { get; }

Property Value

IReadOnlyList<XapiError>