Class JsonElementTypeException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
technology.sola.json.exception.JsonElementTypeException
All Implemented Interfaces:
Serializable

@NullMarked public class JsonElementTypeException extends RuntimeException
Exception thrown when JsonElement is used in an unexpected way.
See Also:
  • Constructor Details

    • JsonElementTypeException

      public JsonElementTypeException(JsonElementType desiredType, JsonElementType actualType)
      Creates a new instance of this exception.
      Parameters:
      desiredType - JsonElementType attempted to use as
      actualType - actual JsonElementType for this JsonElement