Class MapTypeMismatchException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.ignite.lang.IgniteException
org.gridgain.internal.structure.MapTypeMismatchException
All Implemented Interfaces:
Serializable, org.apache.ignite.lang.TraceableException

public class MapTypeMismatchException extends org.apache.ignite.lang.IgniteException
Exception thrown when a map already exists with different key or value types.
See Also:
  • Constructor Details

    • MapTypeMismatchException

      public MapTypeMismatchException(UUID traceId, int code, String message, @Nullable @Nullable Throwable cause)
      Creates a MapTypeMismatchException with all parameters.
      Parameters:
      traceId - The unique trace Id.
      code - The error code.
      message - The exception message.
      cause - The exception cause.
  • Method Details

    • forKeyType

      public static MapTypeMismatchException forKeyType(String mapName, org.apache.ignite.sql.ColumnType expectedType, org.apache.ignite.sql.ColumnType actualType)
      Creates an exception for key type mismatch.
      Parameters:
      mapName - The map name.
      expectedType - The expected key type.
      actualType - The actual key type.
      Returns:
      The exception.
    • forValueType

      public static MapTypeMismatchException forValueType(String mapName, org.apache.ignite.sql.ColumnType expectedType, org.apache.ignite.sql.ColumnType actualType)
      Creates an exception for value type mismatch.
      Parameters:
      mapName - The map name.
      expectedType - The expected value type.
      actualType - The actual value type.
      Returns:
      The exception.