java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.jstach.ezkv.kvs.KeyValuesException
io.jstach.ezkv.kvs.KeyValuesMediaException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorDescriptionKeyValuesMediaException
(@Nullable String message, @Nullable Throwable cause, @Nullable String mediaType) Constructs a newKeyValuesMediaException
with the specified detail message and cause.KeyValuesMediaException
(String message) Constructs a newKeyValuesMediaException
with the specified detail message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
KeyValuesMediaException
public KeyValuesMediaException(@Nullable String message, @Nullable Throwable cause, @Nullable String mediaType) Constructs a newKeyValuesMediaException
with the specified detail message and cause.- Parameters:
message
- the detail message, may benull
cause
- the cause of the exception, may benull
mediaType
- maybenull
.
-
KeyValuesMediaException
Constructs a newKeyValuesMediaException
with the specified detail message.- Parameters:
message
- the detail message, may benull
-