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
errorErrorObjectinnerExceptionException
JsonApiException(IEnumerable<ErrorObject>, Exception?)
public JsonApiException(IEnumerable<ErrorObject> errors, Exception? innerException = null)
Parameters
errorsIEnumerable<ErrorObject>innerExceptionException
Properties
Errors
public IReadOnlyList<ErrorObject> Errors { get; }
Property Value
Methods
GetSummary()
public string GetSummary()