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 | package Torello.Browser;
import Torello.Browser.CDPTypes;
import Torello.Browser.WriteJSON;
import Torello.Java.UnreachableError;
/**
* Indicates that a class has received a Java {@code 'byte'} which isn't among the recognized
* <B STYLE='color:red;'>"Computed Type as Byte"</B> constant values, as listed within
* static-constant class {@link CDPTypes}.
*
* <BR /><BR />
* Generally, any class which utilizes the static constants defined in class {@link CDPTypes} is
* likely intended for internal & proprietary use only. Such a class probably shouldn't be
* invoked by external, user code. Such classes (for instance, class {@link WriteJSON} remain
* public because, indeed, classes which reside in packages other than {@code 'Torello.Browser'}
* invoke {@code WriteJSON}.
*
* <BR /><BR />
* As a result, it must be declared public. And because JavaDoc publishes anything which has the
* reserved keyword 'public', you the end user can see the methods & fields.
*
* <BR /><BR /><DIV CLASS=JDHint>
* ⚠️ What this really means is that the 'unsightly' and generic {@link UnreachableError} is
* replaced by a specially tailored error class (this one). On the off chance that a programmer
* were to invoke {@code 'WriteJSON'}, the generic assert-fail {@code Throwable},
* {@link UnreachableError} is quite inappropriate
*
* <BR /><BR />
* 💡 You may view the complete list of valid {@code 'byte'} constants, as they are defined in class
* {@link CDPTypes}
* </DIV>
*
* @see WriteJSON
* @see CDPTypes
*/
public class UnrecognizedCTABError extends Error
{
/** <EMBED CLASS='external-html' DATA-FILE-ID=SVUIDEX> */
protected static final long serialVersionUID = 1L;
/** Constructs a {@code UnrecognizedCTABError} with no detail message. */
public UnrecognizedCTABError()
{ super(); }
/**
* Constructs a {@code UnrecognizedCTABError} using the erroneous {@code 'CTAB'} value as the
* detail message.
*
* @param CTAB The erroneous value used for <B SYTLE='color:red;'>"Computed Type as Byte"</B>
* (CTAB)
*
* @see WriteJSON#get(get(JsonGenerator, byte, String, Object, boolean)
*/
public UnrecognizedCTABError(byte CTAB)
{ super("The following byte was used for a 'CTAB' (Computed Type as Byte) value: " + CTAB); }
}
|