Skip to content

Commit e553070

Browse files
author
Bart Koelman
committed
separate constructors (easier to derive)
1 parent 5680190 commit e553070

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/JsonApiDotNetCore/Exceptions/JsonApiException.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@ public class JsonApiException : Exception
1515

1616
public Error Error { get; }
1717

18-
public JsonApiException(Error error, Exception innerException = null)
18+
public JsonApiException(Error error)
19+
: this(error, null)
20+
{
21+
}
22+
23+
public JsonApiException(Error error, Exception innerException)
1924
: base(error.Title, innerException)
2025
{
2126
Error = error;

0 commit comments

Comments
 (0)