15 lines
397 B
Java
15 lines
397 B
Java
package de.ph87.home.device;
|
|
|
|
import lombok.NonNull;
|
|
import org.springframework.http.HttpStatus;
|
|
import org.springframework.web.bind.annotation.ResponseStatus;
|
|
|
|
@ResponseStatus(HttpStatus.NOT_FOUND)
|
|
public class DeviceNotFound extends Exception {
|
|
|
|
public DeviceNotFound(@NonNull final String key, final @NonNull String value) {
|
|
super("Device not found: %s=%s".formatted(key, value));
|
|
}
|
|
|
|
}
|