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
package Torello.Browser;

import Torello.Browser.BaseType;
import Torello.Browser.DataIntegrityException;

/**
 * This exception is thrown by the {@link BaseType#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.
 * 
 * <BR /><BR />
 * This exception is also thrown from within the {@link TypeBuilder} class when a user attempts to 
 * construct a type without providing values to required fields within the class.
 * 
 * <BR /><BR /><DIV CLASS=JDHint>
 * Only type and event fields which are specified as "optional" may be omitted from a type's Json
 * Definition.  Only "optional fields" may have {@code 'FALSE'} assigned to their list-index within
 * the containing type or events {@link BaseType#isPresent() isPresent} list.
 * </DIV>
 * 
 * @see BaseType#optionalsValidate()
 * @see BaseType#optionalsValidateThrow()
 * @see NestedDescriptor#optionals
 * @see BaseType#isPresent
 * @see TypeBuilder#build()
 */
public class NullNonOptionalException extends DataIntegrityException
{
    /** <EMBED CLASS='external-html' DATA-FILE-ID=SVUIDEX>  */
    public static final long serialVersionUID = 1;

    /** Constructs a {@code NullNonOptionalException} with no detail message. */
    public NullNonOptionalException()
    { super(); }

    /**
     * Constructs a {@code NullNonOptionalException} with the specified detail message.
     * @param message the detail message.
     */
    public NullNonOptionalException(String message)
    { super(message); }
}