Added custom ClientSafeModelNotFoundException to wrap around ModelNotFoundException in @can and @canFind directives.
New exception is linked to previous exception, allowing for usage in custom error handlers. With this change developers could be able to modify original exception how they want, formatting or replacing conditionally
Breaking changes
Probably none, as new exception being safely catched into same GraphQL\Error and maintain original message
Resolves #2521
Changes
Added custom
ClientSafeModelNotFoundException
to wrap aroundModelNotFoundException
in@can
and@canFind
directives. New exception is linked to previous exception, allowing for usage in custom error handlers. With this change developers could be able to modify original exception how they want, formatting or replacing conditionallyBreaking changes
Probably none, as new exception being safely catched into same
GraphQL\Error
and maintain original message