nl.vpro.nep.service.exception.ItemizerStatusException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of media-nep Show documentation
Show all versions of media-nep Show documentation
Support for the several APIs of NEP that POMS is integrating with
package nl.vpro.nep.service.exception;
import lombok.Getter;
import lombok.ToString;
import java.io.Serial;
import nl.vpro.nep.domain.FailureResponse;
/**
* @author Michiel Meeuwissen
* @since 5.25
*/
@Getter
@ToString
public class ItemizerStatusException extends NEPException {
@Serial
private static final long serialVersionUID = 3080658033118493320L;
private final FailureResponse response;
private final int statusCode;
public ItemizerStatusException(int statusCode, FailureResponse failure) {
super(failure.getErrors());
this.response = failure;
this.statusCode = statusCode;
}
public ItemizerStatusException(int statusCode, String error) {
super(error);
this.response = null;
this.statusCode = statusCode;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy