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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package Torello.Java;

/**
 * Used when a parameter accepts an intance of {@code 'Object'}, but stipulates that this reference
 * must be a reference to a primitive-array.  If an instance of a non-primitive-array is passed,
 * it may be the case that the code causing the exception should re-evaluate the use of whatever
 * method generated that error.
 * 
 * <BR /><BR />This class inherit {@code 'Error'}, rather than {@code 'Exception'} because likely
 * the programmer really has typed something incorrect into his / her code.  In this JAR library,
 * this error is thrown <I>from within an exception-check method
 * {@link ParallelArrayException#check(Object, String, Object, String)}</I>.  Exception check's
 * that generate other exception's necessitate inheriting {@code 'Error'}.
 */
public class ArrayExpectedError extends ExceptionCheckError
{
    /** <EMBED CLASS='external-html' DATA-FILE-ID=SVUIDEX>  */
    public static final long serialVersionUID = 1;

    /** Constructs an {@code 'ArrayExpectedError'} with no detail message. */
    public ArrayExpectedError()
    { super(); }

    /**
     * Constructs an {@code 'ArrayExpectedError'} with the specified detail message.
     * 
     * @param message the detail message.
     */
    public ArrayExpectedError(String message)
    { super(message); }

    /**
     * Constructs a new error with the specified detail {@code 'message'} and 
     * {@code 'cause'}.
     * 
     * <BR /><BR /><B>NOTE:</B> The detail message associated with {@code 'cause'} is not
     * automatically incorporated in this error's detail message.
     * 
     * @param message The detail message (which is saved for later retrieval by th
     * {@code Throwable.getMessage()} method).
     * 
     * @param cause the cause (which is saved for later retrieval by the
     * {@code Throwable.getCause()} method). (A null value is permitted, and indicates that the
     * cause is nonexistent or unknown.)
     */
    public ArrayExpectedError(String message, Throwable cause)
    { super(message); initCause(cause); }

    /**
     * Constructs a new error with the specified {@code 'cause'} and a detail message of
     * {@code (cause==null ? null : cause.toString())} (which typically contains the class
     * and detail message of cause).  This constructor is useful for errors that are little
     * more than wrappers for other throwables.
     * 
     * @param cause The cause (which is saved for later retrieval by the
     * {@code Throwable.getCause()} method).  (A null value is permitted, and indicates that the
     * cause is nonexistent or unknown.)
     */
    public ArrayExpectedError(Throwable cause)
    { super(); initCause(cause); }
}