Table of Contents

Class JsonApiException

Namespace
JsonApiDotNetCore.Errors
Assembly
JsonApiDotNetCore.dll

The base class for an Exception that represents one or more JSON:API error objects in an unsuccessful response.

[PublicAPI]
public class JsonApiException : Exception, ISerializable
Inheritance
JsonApiException
Implements
Derived
Inherited Members

Constructors

JsonApiException(ErrorObject, Exception?)

public JsonApiException(ErrorObject error, Exception? innerException = null)

Parameters

error ErrorObject
innerException Exception

JsonApiException(IEnumerable<ErrorObject>, Exception?)

public JsonApiException(IEnumerable<ErrorObject> errors, Exception? innerException = null)

Parameters

errors IEnumerable<ErrorObject>
innerException Exception

Properties

Errors

public IReadOnlyList<ErrorObject> Errors { get; }

Property Value

IReadOnlyList<ErrorObject>

Methods

GetSummary()

public string GetSummary()

Returns

string