Class 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 class CDPTypes.

    Generally, any class which utilizes the static constants defined in class 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 WriteJSON remain public because, indeed, classes which reside in packages other than 'Torello.Browser' invoke WriteJSON.

    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 generic UnreachableError is replaced by a specially tailored error class (this one). On the off chance that a programmer were to invoke 'WriteJSON', the generic assert-fail Throwable, UnreachableError is quite inappropriate

    💡 You may view the complete list of valid 'byte' constants, as they are defined in class CDPTypes
    See Also:
    WriteJSON, CDPTypes, Serialized Form


    • Field Summary

       
      Serializable ID
      Modifier and Type Field
      protected static long serialVersionUID
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • serialVersionUID

        🡇     🗕  🗗  🗖
        protected static final long serialVersionUID
        This fulfils the SerialVersion UID requirement for all classes that implement Java's interface java.io.Serializable. Using the Serializable Implementation 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's java.lang.Exception and java.lang.Error classes implement the Serializable 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;