Module io.jooby

Class NotAcceptableException

All Implemented Interfaces:
Serializable

public class NotAcceptableException extends StatusCodeException
Whether the accept header isn't acceptable.
Since:
2.5.0
Author:
edgar
See Also:
  • Constructor Details

    • NotAcceptableException

      public NotAcceptableException(@Nullable String contentType)
      Creates a new exception.
      Parameters:
      contentType - Content-Type or null.
  • Method Details

    • getContentType

      @Nullable public String getContentType()
      Content-Type or null.
      Returns:
      Content-Type or null.