Class NoSuchElementInMapResponse
java.lang.Object
net.apartium.cocoabeans.commands.exception.BadCommandResponse
net.apartium.cocoabeans.commands.parsers.exception.InvalidParserResponse
net.apartium.cocoabeans.commands.parsers.exception.NoSuchElementInMapResponse
Represents a response that is reported via a parser when a mapped key is not found
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassNoSuchElementInMapException Represents a response that is reported via a parser when a mapped key is not foundNested classes/interfaces inherited from class net.apartium.cocoabeans.commands.parsers.exception.InvalidParserResponse
InvalidParserResponse.InvalidParserException -
Field Summary
Fields inherited from class net.apartium.cocoabeans.commands.exception.BadCommandResponse
args, commandName, depth, message -
Constructor Summary
ConstructorsConstructorDescriptionNoSuchElementInMapResponse(CommandProcessingContext context, ContextualMapBasedParser<?> parser, String message, String attempted) Construct a new instance of invalid parser response -
Method Summary
Modifier and TypeMethodDescriptionThe attempted key that was not foundgetError()Construct a new instance of the exception to be thrownMethods inherited from class net.apartium.cocoabeans.commands.parsers.exception.InvalidParserResponse
getParserMethods inherited from class net.apartium.cocoabeans.commands.exception.BadCommandResponse
getArgs, getCommandName, getDepth, getMessage, throwError
-
Constructor Details
-
NoSuchElementInMapResponse
public NoSuchElementInMapResponse(CommandProcessingContext context, ContextualMapBasedParser<?> parser, String message, String attempted) Construct a new instance of invalid parser response- Parameters:
context- context of the command processingparser- parser that reported the errormessage- error messageattempted- attempted key
-
-
Method Details
-
getAttempted
The attempted key that was not found- Returns:
- attempted key
-
getError
Construct a new instance of the exception to be thrown- Overrides:
getErrorin classInvalidParserResponse- Returns:
- exception to be thrown
-