org.defendev.common.domain.exception.ResourceIdMismatchException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of common-jdk Show documentation
Show all versions of common-jdk Show documentation
Common utils purely based on JDK and no other dependencies. Only exception being for org.jetbrains:annotations for building stratgic Kotlin language compatibility.Another only-exception is Apache Commons Lang3.
The newest version!
package org.defendev.common.domain.exception;
import org.defendev.common.domain.error.ErrorDto;
import org.defendev.common.domain.error.ErrorWrapperDto;
public class ResourceIdMismatchException extends RuntimeException {
private ErrorWrapperDto errorWrapperDto;
public ResourceIdMismatchException() {
this.errorWrapperDto = new ErrorWrapperDto(new ErrorDto("RESOURCE_ID_MISMATCH", "Resource Id Mismatch", "",
"Resource Id Mismatch", null));
}
public ErrorWrapperDto getErrorWrapperDto() {
return errorWrapperDto;
}
}