MCPcopy
hub / github.com/graphile/starter / getCodeFromError

Function getCodeFromError

@app/lib/src/errors.ts:36–41  ·  view source on GitHub ↗
(
  error: null | Error | ApolloError | GraphQLError
)

Source from the content-addressed store, hash-verified

34}
35
36export function getCodeFromError(
37 error: null | Error | ApolloError | GraphQLError
38): null | string {
39 const err = getExceptionFromError(error);
40 return (err && err["code"]) || null;
41}

Callers 10

ForgotPasswordFunction · 0.90
RegisterFunction · 0.90
LoginFormFunction · 0.90
Settings_AccountsFunction · 0.90
Settings_SecurityFunction · 0.90
innerFunction · 0.90
AddEmailFormFunction · 0.90
ProfileSettingsFormFunction · 0.90
CreateOrganizationPageFunction · 0.90
InvitationAcceptInnerFunction · 0.90

Calls 1

getExceptionFromErrorFunction · 0.85

Tested by

no test coverage detected