Package Torello.Browser
Class UnrecognizedCTABError
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Error
-
- Torello.Browser.UnrecognizedCTABError
-
- All Implemented Interfaces:
java.io.Serializable
public class UnrecognizedCTABError extends java.lang.Error
Indicates that a class has received a Java'byte'which isn't among the recognized "Computed Type as Byte" constant values, as listed within static-constant classCDPTypes.
Generally, any class which utilizes the static constants defined in classCDPTypesis likely intended for internal & proprietary use only. Such a class probably shouldn't be invoked by external, user code. Such classes (for instance, classWriteJSONremain public because, indeed, classes which reside in packages other than'Torello.Browser'invokeWriteJSON.
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.⚠️ What this really means is that the 'unsightly' and genericUnreachableErroris replaced by a specially tailored error class (this one). On the off chance that a programmer were to invoke'WriteJSON', the generic assert-failThrowable,UnreachableErroris quite inappropriate
💡 You may view the complete list of valid'byte'constants, as they are defined in classCDPTypes- See Also:
WriteJSON,CDPTypes, Serialized Form
Hi-Lited Source-Code:- View Here: Torello/Browser/UnrecognizedCTABError.java
- Open New Browser-Tab: Torello/Browser/UnrecognizedCTABError.java
File Size: 2,336 Bytes Line Count: 57 '\n' Characters Found
-
-
Field Summary
Serializable ID Modifier and Type Field protected static longserialVersionUID
-
Constructor Summary
Constructors Constructor UnrecognizedCTABError()UnrecognizedCTABError(byte CTAB)
-
-
-
Field Detail
-
serialVersionUID
protected static final long serialVersionUID
This fulfils the SerialVersion UID requirement for all classes that implement Java'sinterface java.io.Serializable. Using theSerializableImplementation offered by java is very easy, and can make saving program state when debugging a lot easier. It can also be used in place of more complicated systems like "hibernate" to store data as well.
Note that Java'sjava.lang.Exceptionandjava.lang.Errorclasses implement theSerializable interface, and a warning-free build expects this field be defined here.- See Also:
- Constant Field Values
- Code:
- Exact Field Declaration Expression:
protected static final long serialVersionUID = 1L;
-
-
Constructor Detail
-
UnrecognizedCTABError
public UnrecognizedCTABError()
Constructs aUnrecognizedCTABErrorwith no detail message.
-
UnrecognizedCTABError
public UnrecognizedCTABError(byte CTAB)
Constructs aUnrecognizedCTABErrorusing the erroneous'CTAB'value as the detail message.- Parameters:
CTAB- The erroneous value used for "Computed Type as Byte" (CTAB)
-
-