Package ghidra.program.model.data
Class DataTypeConflictException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- ghidra.program.model.data.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
-
-
Constructor Summary
Constructors Constructor Description DataTypeConflictException()
Construct a new DataTypeConflictException with no messageDataTypeConflictException(DataType dt1, DataType dt2)
Construct a new DataTypeConflictException with the given datatypes.DataTypeConflictException(java.lang.String msg)
Construct a new DataTypeConflictException with the given message
-
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.
-
-
-
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.
-
-