diff options
Diffstat (limited to 'src/main/java/exceptions/VSParseIntegerVectorException.java')
| -rw-r--r-- | src/main/java/exceptions/VSParseIntegerVectorException.java | 33 |
1 files changed, 29 insertions, 4 deletions
diff --git a/src/main/java/exceptions/VSParseIntegerVectorException.java b/src/main/java/exceptions/VSParseIntegerVectorException.java index 19c2b82..639b77e 100644 --- a/src/main/java/exceptions/VSParseIntegerVectorException.java +++ b/src/main/java/exceptions/VSParseIntegerVectorException.java @@ -1,13 +1,38 @@ package exceptions; /** - * The Interface VSParseIntegerVectorException, this exception is thrown if - * the VSAbstractEditor is not able to parse the vector fields input of the - * user. + * Exception thrown when the VSAbstractEditor cannot parse vector field input. + * This typically occurs when user input for vector values is malformed. * * @author Paul C. Buetow */ -public class VSParseIntegerVectorException extends Exception { +public class VSParseIntegerVectorException extends VSSimulatorException { /** The serial version uid */ private static final long serialVersionUID = 1L; + + /** + * Constructs a new parse integer vector exception. + */ + public VSParseIntegerVectorException() { + super("Failed to parse integer vector from input"); + } + + /** + * Constructs a new parse integer vector exception with the specified input string. + * + * @param input the input string that could not be parsed + */ + public VSParseIntegerVectorException(String input) { + super("Failed to parse integer vector from input: " + input); + } + + /** + * Constructs a new parse integer vector exception with the specified input and cause. + * + * @param input the input string that could not be parsed + * @param cause the underlying cause of the parse failure + */ + public VSParseIntegerVectorException(String input, Throwable cause) { + super("Failed to parse integer vector from input: " + input, cause); + } } |
