import { HelpfulError, type HelpfulErrorMetadata } from './HelpfulError'; /** * UnexpectedCodePathError errors are used to explicitly declare that we've reached a code path that should never have been reached */ export class UnexpectedCodePathError< TMetadata extends HelpfulErrorMetadata = HelpfulErrorMetadata, > extends HelpfulError { /** * .what = default http code for unexpected code path errors * .why = aligns with http 500 semantics */ public static code = { http: 500 } as const; }