Skip to content

Commit aee11a7

Browse files
committed
give JsonApiException more descriptive message
1 parent 751296d commit aee11a7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

JSONAPI/Documents/Builders/JsonApiException.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public class JsonApiException : Exception
1919
/// Creates a new JsonApiException
2020
/// </summary>
2121
/// <param name="error"></param>
22-
public JsonApiException(IError error)
22+
public JsonApiException(IError error) : base(error?.Detail ?? "An error occurred in JSONAPI")
2323
{
2424
Error = error;
2525
}

0 commit comments

Comments
 (0)