All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nl.vpro.domain.NotFoundException Maven / Gradle / Ivy

Go to download

Several domains like 'media', pages' and 'subtitles' in the POMS system share some common properties which are collected here

There is a newer version: 8.3.1
Show newest version
package nl.vpro.domain;

import lombok.Getter;

import java.io.Serial;
import java.io.Serializable;

import org.checkerframework.checker.nullness.qual.Nullable;

/**
 * An exception that can be thrown if something is not find. E.g. a profile or a mediaobject
 * 

* * This is a runtime exception. Since it is thrown by rest service interfaces * * @author Michiel Meeuwissen * @since 4.4 */ public class NotFoundException extends IllegalArgumentException { @Serial private static final long serialVersionUID = 1756255370140166823L; @Getter private final Serializable identifier; public NotFoundException(@Nullable String identifier, String message) { super((identifier == null ? "" : "For '" + identifier + "'. ") + message); this.identifier = identifier; } public NotFoundException(String s, String message, Exception cause) { super(message, cause); this.identifier = s; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy