Package org.gridgain.internal.structure
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 Summary
ConstructorsConstructorDescriptionMapTypeMismatchException(UUID traceId, int code, String message, @Nullable Throwable cause) Creates a MapTypeMismatchException with all parameters. -
Method Summary
Modifier and TypeMethodDescriptionstatic MapTypeMismatchExceptionforKeyType(String mapName, org.apache.ignite.sql.ColumnType expectedType, org.apache.ignite.sql.ColumnType actualType) Creates an exception for key type mismatch.static MapTypeMismatchExceptionforValueType(String mapName, org.apache.ignite.sql.ColumnType expectedType, org.apache.ignite.sql.ColumnType actualType) Creates an exception for value type mismatch.Methods inherited from class org.apache.ignite.lang.IgniteException
code, codeAsString, errorCode, groupCode, groupName, toString, traceIdMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
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.
-