message: rethrow: Allow making error catchable
diff: @@ -2,13 +2,17 @@ export function rethrow(
  error: GenericException,
  description?: string,
  context?: Record<string, unknown>,
  - enduser_message?: string
  + enduser_message?: string,
  + catchable = false
  ) {
  - // Allow throwing from inside promise `catch` functions, see https://stackoverflow.com/a/30741722.
  - setTimeout(() => {
  if (description) error.description = description;
  if (context) error.context = context;
  if (enduser_message) error.enduser_message = enduser_message;
  +
  + // Allow throwing from inside promise `catch` functions, see https://stackoverflow.com/a/30741722.
  + if (catchable) throw error;
  + else
  + setTimeout(() => {
  throw error;
  }, 0);
  }
  