Package Torello.Browser
Class InvalidEnumStrException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- Torello.Browser.DataIntegrityException
-
- Torello.Browser.InvalidEnumStrException
-
- All Implemented Interfaces:
java.io.Serializable
public class InvalidEnumStrException extends DataIntegrityException
Used to indicate that a field within a CDP type or event has been constructed is a string field, and has a pre-defined & pre-specified enumeration of valid strings, but whose value does not actually equal one of the listed, pre-defined strings.Enumeration Lists in the Browser's API are not actually "reified" into standard Javaenum's. In this way, if a "suprise return string" from a Browser isn't actually a valid element within theenum'sstring list, an exception thrown at the transport web-sockets layer can easily be avoided. Instead, if the user needs to check the validity of an event or domain class, he may simply invoke theBaseType.enumStrValidate()or theBaseType.enumStrValidateThrow()methods.- See Also:
BaseType.enumStrValidate(),BaseType.enumStrValidateThrow(),NestedHelper.enumStrValidate(BaseType), Serialized Form
Hi-Lited Source-Code:- View Here: Torello/Browser/InvalidEnumStrException.java
- Open New Browser-Tab: Torello/Browser/InvalidEnumStrException.java
File Size: 1,530 Bytes Line Count: 36 '\n' Characters Found
-
-
Field Summary
Serializable ID Modifier and Type Field static longserialVersionUID
-
Constructor Summary
Constructors Constructor InvalidEnumStrException()InvalidEnumStrException(String message)
-
-
-
Field Detail
-
serialVersionUID
public 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:
public static final long serialVersionUID = 1;
-
-
Constructor Detail
-
InvalidEnumStrException
public InvalidEnumStrException()
Constructs aInvalidEnumStrExceptionwith no detail message.
-
InvalidEnumStrException
public InvalidEnumStrException(java.lang.String message)
Constructs aInvalidEnumStrExceptionwith the specified detail message.- Parameters:
message- the detail message.
-
-