summaryrefslogtreecommitdiff
path: root/src/main/java/exceptions/VSParseIntegerVectorException.java
blob: 639b77e6e86fb001e040a3f8f42829071890ce4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package exceptions;

/**
 * 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 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);
    }
}