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

io.jstach.kiwi.kvs.KeyValuesMediaException Maven / Gradle / Ivy

The newest version!
package io.jstach.kiwi.kvs;

import org.jspecify.annotations.Nullable;

/**
 * An exception thrown when an error related to media type handling occurs in the context
 * of key-value parsing or formatting.
 *
 * 

* This exception is used when a required media type cannot be found or when an issue * arises while processing media types associated with {@link KeyValuesResource} * instances. * *

* Example scenarios where this exception might be thrown include: *

    *
  • Failing to find a parser for a specified media type
  • *
  • Issues related to media type resolution or handling
  • *
* *

* This class extends {@link RuntimeException}, so it does not need to be declared in a * method's {@code throws} clause. */ public class KeyValuesMediaException extends RuntimeException { private static final long serialVersionUID = 1L; /** * Constructs a new {@code KeyValuesMediaException} with the specified detail message * and cause. * @param message the detail message, may be {@code null} * @param cause the cause of the exception, may be {@code null} */ public KeyValuesMediaException(@Nullable String message, @Nullable Throwable cause) { super(message, cause); } /** * Constructs a new {@code KeyValuesMediaException} with the specified detail message. * @param message the detail message, may be {@code null} */ public KeyValuesMediaException(@Nullable String message) { super(message); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy