public class NoSuchParserException extends ParseException
Context.parse(Parse)
,
Serialized FormConstructor and Description |
---|
NoSuchParserException(TypeToken<?> type,
java.lang.Object opts,
java.lang.String contentType)
Constructor.
|
NoSuchParserException(TypeToken<?> type,
java.lang.Object opts,
java.lang.String contentType,
java.lang.Iterable<Parser<?>> parsers)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContentType()
The content type of the request.
|
java.lang.Object |
getOpts()
The parse opts.
|
TypeToken<?> |
getType()
The target type.
|
public NoSuchParserException(TypeToken<?> type, java.lang.Object opts, java.lang.String contentType)
type
- the target typeopts
- the parse optionscontentType
- The content type of the requestpublic NoSuchParserException(TypeToken<?> type, java.lang.Object opts, java.lang.String contentType, java.lang.Iterable<Parser<?>> parsers)
type
- the target typeopts
- the parse optionscontentType
- The content type of the requestparsers
- the parsers that had the opportunity to parse but didn'tpublic TypeToken<?> getType()
public java.lang.Object getOpts()
public java.lang.String getContentType()