Nordcom AB's Logo
NewsDocumentation
Admin
728d899
Terms of ServicePrivacy Policy
© 2023-2026 Nordcom AB
Back
500:

Unreachable code-path taken

UNREACHABLE

Error Class Name

UnreachableError.

Possible Causes

  • This error should in theory never occur, please reach out to your Nordcom Commerce contact if you have the misfortune to experience it.

Documentation

An theoretical unreachable code path has been taken (eg, switch case fall through, if else block or similar), this is a sign of a greater underlying problem and should be reported to Nordcom AB ASAP so we can investigate it.

Code

if (true) {
    return 'hello';
}

// This should be unreachable.
throw new UnreachableError();

Related Articles

  • TODO
  • Another TODO