package nl.homeserver;

import org.apache.commons.lang3.exception.ExceptionUtils;

import lombok.Getter;
import lombok.Setter;

public class ErrorResponse {

    @Getter @Setter
    private String code;
    @Getter @Setter
    private String details;

    public ErrorResponse(Throwable t) {
        code = t.getClass().getName();
        details = ExceptionUtils.getStackTrace(t);
    }

    public ErrorResponse(String code, String details) {
        this.code = code;
        this.details = details;
    }
}

@@ -28,60 +28,23 @@
 ort 
-org.apache.commons.lang3.exception.ExceptionUtils
+lombok.Getter
 ;%0A
-%0A
 impo
@@ -57,38 +57,58 @@
 bok.
-Getter;%0Aimport lombok.Setter;%0A
+RequiredArgsConstructor;%0A%0A@RequiredArgsConstructor
 %0Apub
@@ -141,32 +141,24 @@
 %0A    @Getter
- @Setter
 %0A    private
@@ -154,24 +154,30 @@
     private 
+final 
 String code;
@@ -192,16 +192,8 @@
 tter
- @Setter
 %0A   
@@ -201,16 +201,22 @@
 private 
+final 
 String d
@@ -226,265 +226,7 @@
 ils;
-%0A%0A    public ErrorResponse(Throwable t) %7B%0A        code = t.getClass().getName();%0A        details = ExceptionUtils.getStackTrace(t);%0A    %7D%0A%0A    public ErrorResponse(String code, String details) %7B%0A        this.code = code;%0A        this.details = details;%0A    %7D
 %0A%7D%0A

Add Project Lombok