Class MissingConverterException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.inverno.mod.web.base.MissingConverterException
All Implemented Interfaces:
Serializable

public class MissingConverterException extends RuntimeException

Thrown to indicate that no converter was found for a specific media type.

Since:
1.12
Author:
Jeremy Kuhn
See Also:
  • Constructor Details

    • MissingConverterException

      public MissingConverterException()

      Creates a missing converter exception to report a null media type.

    • MissingConverterException

      public MissingConverterException(String mediaType)

      Creates a missing converter exception with the specified media type.

      Parameters:
      mediaType - The media type
    • MissingConverterException

      public MissingConverterException(String mediaType, String message)

      Creates a missing converter exception with the specified media type and message.

      Parameters:
      mediaType - the media type
      message - a message
    • MissingConverterException

      public MissingConverterException(String mediaType, Throwable cause)

      Creates a missing converter exception with the specified media type and cause.

      Parameters:
      mediaType - the media type
      cause - the cause
    • MissingConverterException

      public MissingConverterException(String mediaType, String message, Throwable cause)

      Creates a missing converter exception with the specified media type, message and cause.

      Parameters:
      mediaType - the media type
      message - a message
      cause - the cause
  • Method Details

    • getMediaType

      public String getMediaType()

      Returns the media type.

      Returns:
      the media type or null