Skip to content

Commit 8bfd64f

Browse files
committed
Added ability to set extensions on GQLMessageException
1 parent 1293a8f commit 8bfd64f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/FSharp.Data.GraphQL.Server/Exceptions.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ type GQLMessageExceptionBase (errorKind, msg, [<Optional>] extensions) =
3030
|> GQLProblemDetails.SetErrorKind errorKind
3131
|> ValueSome
3232

33-
type GQLMessageException (msg) =
34-
inherit GQLMessageExceptionBase (Execution, msg)
33+
type GQLMessageException (msg, [<Optional>] extensions) =
34+
inherit GQLMessageExceptionBase (Execution, msg, extensions)
3535

3636
type InvalidInputTypeException (msg, unmatchedOptionalFields) =
3737
inherit GQLMessageExceptionBase (InputCoercion, msg)

0 commit comments

Comments
 (0)