Class NoSuchParserException

    • Constructor Detail

      • NoSuchParserException

        public NoSuchParserException​(com.google.common.reflect.TypeToken<?> type,
                                     Object opts,
                                     String contentType)
        Constructor.
        Parameters:
        type - the target type
        opts - the parse options
        contentType - The content type of the request
      • NoSuchParserException

        public NoSuchParserException​(com.google.common.reflect.TypeToken<?> type,
                                     Object opts,
                                     String contentType,
                                     Iterable<Parser<?>> parsers)
        Constructor.
        Parameters:
        type - the target type
        opts - the parse options
        contentType - The content type of the request
        parsers - the parsers that had the opportunity to parse but didn't
    • Method Detail

      • getType

        public com.google.common.reflect.TypeToken<?> getType()
        The target type.
        Returns:
        the target type
      • getOpts

        public Object getOpts()
        The parse opts.
        Returns:
        the parse opts
      • getContentType

        public String getContentType()
        The content type of the request.
        Returns:
        the content type of the request