Class KeyValuesMediaException

All Implemented Interfaces:
Serializable

public final class KeyValuesMediaException extends KeyValuesException
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 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 RuntimeException, so it does not need to be declared in a method's throws clause.

See Also:
  • Constructor Details

    • KeyValuesMediaException

      public KeyValuesMediaException(@Nullable String message, @Nullable Throwable cause, @Nullable String mediaType)
      Constructs a new KeyValuesMediaException with the specified detail message and cause.
      Parameters:
      message - the detail message, may be null
      cause - the cause of the exception, may be null
      mediaType - maybe null.
    • KeyValuesMediaException

      Constructs a new KeyValuesMediaException with the specified detail message.
      Parameters:
      message - the detail message, may be null