![JAR search and dependency download from the Maven repository](/logo.png)
com.rcore.restapi.exceptions.BaseApiException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rest-api Show documentation
Show all versions of rest-api Show documentation
REST API component for Clean Arch apps
package com.rcore.restapi.exceptions;
import lombok.Getter;
import lombok.NoArgsConstructor;
@NoArgsConstructor
@Getter
public class BaseApiException extends Exception {
private ExceptionDTO error;
public BaseApiException(ExceptionDTO error) {
this.error = error;
}
public BaseApiException(String title, String message, String domain, String details) {
this.error = ExceptionDTO.builder()
.presentationData(ExceptionDTO.PresentationData.builder()
.title(title)
.message(message)
.build())
.details(details)
.domain(domain)
.build();
}
public BaseApiException(String message, String domain, String details) {
this.error = ExceptionDTO.builder()
.presentationData(ExceptionDTO.PresentationData.builder()
.message(message)
.build())
.details(details)
.domain(domain)
.build();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy