Class FieldExistsException

  • All Implemented Interfaces:
    Serializable

    public class FieldExistsException
    extends DRException
    Exception indicating a field already exists in a field namespace such as a record.
    See Also:
    Serialized Form
    • Constructor Detail

      • FieldExistsException

        public FieldExistsException​(String fieldName,
                                    String... existingFieldNames)
        Construct the exception without a message.
        Parameters:
        fieldName - name of the field that already exists
        existingFieldNames - name of all existing fields
      • FieldExistsException

        public FieldExistsException​(String msg,
                                    String fieldName,
                                    String... existingFieldNames)
        Construct the exception with a message.
        Parameters:
        msg - message to be added to the exceptions message
        fieldName - name of the field that already exists
        existingFieldNames - name of all existing fields
    • Method Detail

      • getFieldName

        public String getFieldName()
        Get the field name.
        Returns:
        field name
      • getExisingFieldNames

        public String[] getExisingFieldNames()
        Get the existing field names.
        Returns:
        existing field names