hunk.code_window: import React, { useEffect, useState, useRef } from "react";
   import { debounce } from "lodash";
   import styled from "styled-components";
   import { useScript, ScriptStatus } from "utils/hooks/useScript";
   const StyledRTEditor = styled.div`
     && {
       width: 100%;
       height: 100%;
  
hunk.labels: keep keep keep add keep keep keep keep keep
hunk.after_edit: import { RTEFormats } from "widgets/RichTextEditorWidget";
  
hunk.file_path: app/client/src/components/designSystems/appsmith/RichTextEditorComponent.tsx
hunk.type: add
file: package com.appsmith.external.exceptions.pluginExceptions;
  
  import com.appsmith.external.exceptions.AppsmithErrorAction;
  import lombok.Getter;
  import lombok.Setter;
  
  @Getter
  @Setter
  public class AppsmithPluginException extends Exception {
      private final AppsmithPluginError error;
      private final Object[] args;
  
      public AppsmithPluginException(AppsmithPluginError error, Object... args) {
          super(error.getMessage(args));
          this.error = error;
          this.args = args;
      }
  
      public Integer getHttpStatus() {
          return this.error.getHttpErrorCode();
      }
  
      @Override
      public String getMessage() {
          return this.error.getMessage(args);
      }
  
      public Integer getAppErrorCode() {
          return this.error == null ? 0 : this.error.getAppErrorCode();
      }
  
      public AppsmithErrorAction getErrorAction() {
          return this.error.getErrorAction();
      }
  
  }
  