Package Torello.Browser
Class NullNonOptionalException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- Torello.Browser.DataIntegrityException
-
- Torello.Browser.NullNonOptionalException
-
- All Implemented Interfaces:
java.io.Serializable
public class NullNonOptionalException extends DataIntegrityException
This exception is thrown by theBaseType.optionalsValidateThrow()method. The purpose of this exception class is to signal that a CDP Nested Type or Event class has been constructed that doesn't actually meet the specification criteria, as defined in Google's CDP Json-Definition File regarding optional versus required fields.
This exception is also thrown from within theTypeBuilderclass when a user attempts to construct a type without providing values to required fields within the class.Only type and event fields which are specified as "optional" may be omitted from a type's Json Definition. Only "optional fields" may have'FALSE'assigned to their list-index within the containing type or eventsisPresentlist.- See Also:
BaseType.optionalsValidate(),BaseType.optionalsValidateThrow(),AbstractDescriptor.optionals,BaseType.isPresent,TypeBuilder.build(), Serialized Form
Hi-Lited Source-Code:- View Here: Torello/Browser/NullNonOptionalException.java
- Open New Browser-Tab: Torello/Browser/NullNonOptionalException.java
File Size: 1,710 Bytes Line Count: 43 '\n' Characters Found
-
-
Field Summary
Serializable ID Modifier and Type Field static longserialVersionUID
-
Constructor Summary
Constructors Constructor NullNonOptionalException()NullNonOptionalException(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
-
NullNonOptionalException
public NullNonOptionalException()
Constructs aNullNonOptionalExceptionwith no detail message.
-
NullNonOptionalException
public NullNonOptionalException(java.lang.String message)
Constructs aNullNonOptionalExceptionwith the specified detail message.- Parameters:
message- the detail message.
-
-