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:
java.io.Serializable,IIdentifiable
public class ValueDoesNotMatchTypeException extends IvmlException
An exception which signals that a given value does not match the specified type.- Author:
- Holger Eichelberger
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intINTERNALstatic intIS_ABSTRACTstatic intIS_CONSTANTstatic intIS_NULLstatic intNO_DATATYPEstatic intNO_LITERALstatic intNOT_ALLOWED_VALUE_STRUCTUREError code for structured values.static intSLOT_MISMATCHstatic intTYPE_MISMATCH
-
Constructor Summary
Constructors Constructor Description ValueDoesNotMatchTypeException(java.lang.Object value, java.lang.String type, int code)Creates a new mismatch exception.ValueDoesNotMatchTypeException(java.lang.String message, int code)Creates a new mismatch exception.ValueDoesNotMatchTypeException(java.lang.String value, IDatatype type, int code)Creates a new mismatch exception.ValueDoesNotMatchTypeException(java.lang.String valueString, Value value, int code)Creates a new mismatch exception.
-
Method Summary
-
Methods inherited from class net.ssehub.easy.varModel.model.IvmlException
getCode, getId
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.ssehub.easy.basics.messages.IIdentifiable
getMessage
-
-
-
-
Field Detail
-
IS_NULL
public static final int IS_NULL
- See Also:
- Constant Field Values
-
NO_LITERAL
public static final int NO_LITERAL
- See Also:
- Constant Field Values
-
SLOT_MISMATCH
public static final int SLOT_MISMATCH
- See Also:
- Constant Field Values
-
TYPE_MISMATCH
public static final int TYPE_MISMATCH
- See Also:
- Constant Field Values
-
INTERNAL
public static final int INTERNAL
- See Also:
- Constant Field Values
-
NO_DATATYPE
public static final int NO_DATATYPE
- See Also:
- Constant Field Values
-
IS_CONSTANT
public static final int IS_CONSTANT
- See Also:
- Constant Field Values
-
NOT_ALLOWED_VALUE_STRUCTURE
public static final int NOT_ALLOWED_VALUE_STRUCTURE
Error code for structured values. This error code should be used if each values is valid, but not allowed in combination, e.g. a SetValue with duplicates.- See Also:
- Constant Field Values
-
IS_ABSTRACT
public static final int IS_ABSTRACT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ValueDoesNotMatchTypeException
public ValueDoesNotMatchTypeException(java.lang.String message, int code)Creates a new mismatch exception.- Parameters:
message- the exception messagecode- a code representing the cause
-
ValueDoesNotMatchTypeException
public ValueDoesNotMatchTypeException(java.lang.Object value, java.lang.String type, int code)Creates a new mismatch exception.- Parameters:
value- the value which caused the exceptiontype- the typevaluedoes not match tocode- a code representing the cause
-
ValueDoesNotMatchTypeException
public ValueDoesNotMatchTypeException(java.lang.String value, IDatatype type, int code)Creates a new mismatch exception.- Parameters:
value- the value which caused the exceptiontype- the typevaluedoes not match tocode- a code representing the cause
-
ValueDoesNotMatchTypeException
public ValueDoesNotMatchTypeException(java.lang.String valueString, Value value, int code)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
-
-