Class AmbiguousMappedKeyResponse
java.lang.Object
net.apartium.cocoabeans.commands.exception.BadCommandResponse
net.apartium.cocoabeans.commands.parsers.exception.InvalidParserResponse
net.apartium.cocoabeans.commands.parsers.exception.AmbiguousMappedKeyResponse
Represents a response that is reported via a parser when a mapped key is ambiguous
- See Also:
-
Nested Class Summary
Nested ClassesNested 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
ConstructorsConstructorDescriptionAmbiguousMappedKeyResponse(CommandProcessingContext context, ArgumentParser<?> parser, String message, List<String> keys) Construct a new instance of ambiguous mapped key response -
Method Summary
Methods 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
-
AmbiguousMappedKeyResponse
public AmbiguousMappedKeyResponse(CommandProcessingContext context, ArgumentParser<?> parser, String message, List<String> keys) Construct a new instance of ambiguous mapped key response- Parameters:
context- context of the command processingparser- parser that reported the errormessage- error messagekeys- list of ambiguous keys
-
-
Method Details
-
getKeys
Get the list of ambiguous keys- Returns:
- list of ambiguous keys
-
getError
Construct a new instance of the exception to be thrown- Overrides:
getErrorin classInvalidParserResponse- Returns:
- exception to be thrown
-