package ru.pmsoft.twitterkiller.rest.exceptions;

import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
public class ExceptionBody {
    private String message;

    public ExceptionBody(String message) {
        this.message = message;
    }

    public String getMessage() {
        return message;
    }
}

@@ -311,11 +311,321 @@
 e;%0A    %7D
+%0A%0A    @Override%0A    public boolean equals(Object obj) %7B%0A        if (obj==null)%0A            return false;%0A        if (!(obj instanceof ExceptionBody))%0A            return false;%0A        return hashCode() == obj.hashCode();%0A    %7D%0A%0A    @Override%0A    public int hashCode() %7B%0A        return message.hashCode();%0A    %7D
 %0A%7D%0A

add overrided equals and hashcode in ExceptionBody