@@ -0,0 +1,1605 @@
+/**%0A * JBoss, Home of Professional Open Source.%0A * Copyright 2014-2018 Red Hat, Inc., and individual contributors%0A * as indicated by the @author tags.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A * http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage org.jboss.pnc.dto.response;%0A%0Aimport com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder;%0A%0Aimport lombok.AllArgsConstructor;%0Aimport lombok.Builder;%0Aimport lombok.Data;%0A%0A/**%0A *%0A * @author Honza Br%C3%A1zdil &lt;jbrazdil@redhat.com&gt;%0A */%0A@Data%0A@Builder(builderClassName = %22Builder%22)%0A@AllArgsConstructor()%0Apublic class ErrorResponse %7B%0A%0A    private final String errorType;%0A%0A    private final String errorMessage;%0A%0A    private final Object details;%0A%0A    public ErrorResponse(String errorType, String errorMessage) %7B%0A        this.errorType = errorType;%0A        this.errorMessage = errorMessage;%0A        this.details = null;%0A    %7D%0A%0A    public ErrorResponse(Exception e) %7B%0A        this.errorType = e.getClass().getSimpleName();%0A        this.errorMessage = e.getMessage();%0A        this.details = null;%0A    %7D%0A%0A    @JsonPOJOBuilder(withPrefix = %22%22)%0A    public static final class Builder %7B%0A    %7D%0A%7D%0A

Add ErrorResponse DTO