Class InvalidParserResponse
java.lang.Object
net.apartium.cocoabeans.commands.exception.BadCommandResponse
net.apartium.cocoabeans.commands.parsers.exception.InvalidParserResponse
- Direct Known Subclasses:
AmbiguousMappedKeyResponse,InvalidUUIDResponse,NoSuchElementInMapResponse
Represents a response that is reported via a parser
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class net.apartium.cocoabeans.commands.exception.BadCommandResponse
args, commandName, depth, message -
Constructor Summary
ConstructorsConstructorDescriptionInvalidParserResponse(CommandProcessingContext context, ArgumentParser<?> parser, String message) Construct a new instance of invalid parser response -
Method Summary
Modifier and TypeMethodDescriptiongetError()Construct a new instance of the exception to be thrownGet the parser that reported the errorMethods inherited from class net.apartium.cocoabeans.commands.exception.BadCommandResponse
getArgs, getCommandName, getDepth, getMessage, throwError
-
Constructor Details
-
InvalidParserResponse
public InvalidParserResponse(CommandProcessingContext context, ArgumentParser<?> parser, String message) Construct a new instance of invalid parser response- Parameters:
context- context of the command processingparser- parser that reported the errormessage- error message
-
-
Method Details
-
getParser
Get the parser that reported the error- Returns:
- parser that reported the error
-
getError
Construct a new instance of the exception to be thrown- Overrides:
getErrorin classBadCommandResponse- Returns:
- exception to be thrown
-