Class DataTypeConflictException

  • All Implemented Interfaces:
    java.io.Serializable

    public class DataTypeConflictException
    extends java.lang.RuntimeException
    Exception thrown when an attempt is made to add a data type to a category and the category has a data type by that name but the types do not match.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      DataType[] getConflictingDataTypes()
      Returns the conflicting data types in a Data Type array of size 2.
      • 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
    • Constructor Detail

      • DataTypeConflictException

        public DataTypeConflictException()
        Construct a new DataTypeConflictException with no message
      • DataTypeConflictException

        public DataTypeConflictException​(java.lang.String msg)
        Construct a new DataTypeConflictException with the given message
        Parameters:
        msg - the exception message
      • DataTypeConflictException

        public DataTypeConflictException​(DataType dt1,
                                         DataType dt2)
        Construct a new DataTypeConflictException with the given datatypes. The message will indicate there is a conflict between the two data types.
        Parameters:
        dt1 - the first of the two conflicting data types. (The new data type.)
        dt2 - the second of the two conflicting data types. (The existing data type.)
    • Method Detail

      • getConflictingDataTypes

        public DataType[] getConflictingDataTypes()
        Returns the conflicting data types in a Data Type array of size 2. The first entry is the first data type in conflict. The second entry is the second data type in conflict.

        Note: These values can be null. They are only known if this object was created using the constructor that has the conflicting data types as parameters.

        Returns:
        the two conflicting data types or nulls.