Class JsonPropMissingException

    • Field Detail

      • serialVersionUID

        🡇     🗕  🗗  🗖
        public 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:
         public static final long serialVersionUID = 1;
        
    • Constructor Detail

      • JsonPropMissingException

        🡅  🡇     🗕  🗗  🗖
        public JsonPropMissingException​(JsonObject errorSourceJsonObject,
                                        java.lang.String propertyName,
                                        JsonValue.ValueType expectedJsonType,
                                        java.lang.Class<?> methodReturnJavaType)
        Constructs a JsonPropMissingException with no specified detail messsage, and the user-provided convenience-field values.
        Parameters:
        errorSourceJsonObject - The JsonObject from which the property is being retrieved / extracted.
        propertyName - This is the property-name into the JsonObject from which the property is being retrieved / extracted.
        expectedJsonType - This is the Json-Type that was expected to be retrieved from JsonObject.
        methodReturnJavaType - Class ReadJSON will always provide the ultimate Java-Type that is to be returned by the method where this exception is being thrown.
      • JsonPropMissingException

        🡅     🗕  🗗  🗖
        public JsonPropMissingException​(java.lang.String message,
                                        JsonObject errorSourceJsonObject,
                                        java.lang.String propertyName,
                                        JsonValue.ValueType expectedJsonType,
                                        java.lang.Class<?> methodReturnJavaType)
        Constructs a JsonPropMissingException with the specified detail message, and user-provided convenience-field values.
        Parameters:
        message - the detail message.
        errorSourceJsonObject - The JsonObject from which the property is being retrieved / extracted.
        propertyName - This is the property-name into the JsonObject from which the property is being retrieved / extracted.
        expectedJsonType - This is the Json-Type that was expected to be retrieved from JsonObject.
        methodReturnJavaType - Class ReadJSON will always provide the ultimate Java-Type that is to be returned by the method where this exception is being thrown.