Function craftSynthesizedError

Crafts a new synthesized error class with the given properties.

  • Parameters

    • props: {
          cause?: string;
          context?: string;
          errorCode?: ErrorCode;
          module?: string;
          name: string;
          severity?: Severity;
      }

      The properties to craft the synthesized error.

      • Optionalcause?: string
      • Optionalcontext?: string
      • OptionalerrorCode?: ErrorCode
      • Optionalmodule?: string
      • name: string
      • Optionalseverity?: Severity

    Returns typeof CraftedSynthesizedError

    The crafted synthesized error class.