Class ValueDoesNotMatchTypeException

  • All Implemented Interfaces:
    java.io.Serializable, net.ssehub.easy.basics.messages.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
    • Method Summary

      • 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
    • Constructor Detail

      • ValueDoesNotMatchTypeException

        public ValueDoesNotMatchTypeException​(java.lang.String message,
                                              int code)
        Creates a new mismatch exception.
        Parameters:
        message - the exception message
        code - 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 exception
        type - the type value does not match to
        code - 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 exception
        type - the type value does not match to
        code - 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 exception
        value - the value object in which caused the problem
        code - a code representing the cause