hunk.code_window:         </dependency>
           <dependency>
               <groupId>org.springframework.boot</groupId>
               <artifactId>spring-boot-starter-data-redis-reactive</artifactId>
           </dependency>
           <dependency>
               <groupId>org.hibernate.validator</groupId>
               <artifactId>hibernate-validator</artifactId>
               <version>6.0.17.Final</version>
           </dependency>
  
hunk.labels: keep keep keep keep add keep keep keep keep keep
hunk.after_edit:         <dependency>
               <groupId>org.springframework.boot</groupId>
               <artifactId>spring-boot-starter-data-redis</artifactId>
           </dependency>
           <dependency>
               <groupId>org.springframework.session</groupId>
               <artifactId>spring-session-data-redis</artifactId>
           </dependency>
  
hunk.file_path: app/server/appsmith-server/pom.xml
hunk.type: add
file: package com.appsmith.server.exceptions;
  
  import lombok.Getter;
  import lombok.Setter;
  
  @Getter
  @Setter
  public class AppsmithException extends Exception {
  
      private AppsmithError error;
      private Object[] args;
  
      public AppsmithException(String msg) {
          super(msg);
      }
  
      public AppsmithException(AppsmithError error, Object... args) {
          super(error.getMessage(args));
          this.error = error;
          this.args = args;
      }
  
      public Integer getHttpStatus() {
          return this.error.getHttpErrorCode();
      }
  
      public String getMessage(Object... args) {
          return this.error.getMessage(this.args);
      }
  
      public Integer getAppErrorCode() {
          return this.error.getAppErrorCode();
      }
  
  }
  