Class ValueDoesNotMatchTypeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
net.ssehub.easy.varModel.model.IvmlException
net.ssehub.easy.varModel.model.values.ValueDoesNotMatchTypeException
- All Implemented Interfaces:
Serializable,net.ssehub.easy.basics.messages.IIdentifiable
An exception which signals that a given value does not match the
specified type.
- Author:
- Holger Eichelberger
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intError code for structured values.static final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionValueDoesNotMatchTypeException(Object value, String type, int code) Creates a new mismatch exception.ValueDoesNotMatchTypeException(String message, int code) Creates a new mismatch exception.ValueDoesNotMatchTypeException(String value, IDatatype type, int code) Creates a new mismatch exception.ValueDoesNotMatchTypeException(String valueString, Value value, int code) Creates a new mismatch exception. -
Method Summary
Methods inherited from class net.ssehub.easy.varModel.model.IvmlException
getCode, getIdMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.ssehub.easy.basics.messages.IIdentifiable
getMessage
-
Field Details
-
IS_NULL
public static final int IS_NULL- See Also:
-
NO_LITERAL
public static final int NO_LITERAL- See Also:
-
SLOT_MISMATCH
public static final int SLOT_MISMATCH- See Also:
-
TYPE_MISMATCH
public static final int TYPE_MISMATCH- See Also:
-
INTERNAL
public static final int INTERNAL- See Also:
-
NO_DATATYPE
public static final int NO_DATATYPE- See Also:
-
IS_CONSTANT
public static final int IS_CONSTANT- See Also:
-
NOT_ALLOWED_VALUE_STRUCTURE
public static final int NOT_ALLOWED_VALUE_STRUCTUREError code for structured values. This error code should be used if each values is valid, but not allowed in combination, e.g. aSetValuewith duplicates.- See Also:
-
IS_ABSTRACT
public static final int IS_ABSTRACT- See Also:
-
-
Constructor Details
-
ValueDoesNotMatchTypeException
Creates a new mismatch exception.- Parameters:
message- the exception messagecode- a code representing the cause
-
ValueDoesNotMatchTypeException
Creates a new mismatch exception.- Parameters:
value- the value which caused the exceptiontype- the typevaluedoes not match tocode- a code representing the cause
-
ValueDoesNotMatchTypeException
Creates a new mismatch exception.- Parameters:
value- the value which caused the exceptiontype- the typevaluedoes not match tocode- a code representing the cause
-
ValueDoesNotMatchTypeException
Creates a new mismatch exception.- Parameters:
valueString- the value which caused the exceptionvalue- the value object in which caused the problemcode- a code representing the cause
-