java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.pervasive.datarush.exceptions.DRException
com.pervasive.datarush.namespace.FieldExistsException
- All Implemented Interfaces:
Serializable
Exception indicating a field already exists in a field namespace such as a record.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFieldExistsException(String fieldName, String... existingFieldNames) Construct the exception without a message.FieldExistsException(String msg, String fieldName, String... existingFieldNames) Construct the exception with a message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
FieldExistsException
Construct the exception without a message.- Parameters:
fieldName- name of the field that already existsexistingFieldNames- name of all existing fields
-
FieldExistsException
Construct the exception with a message.- Parameters:
msg- message to be added to the exceptions messagefieldName- name of the field that already existsexistingFieldNames- name of all existing fields
-
-
Method Details
-
getMessage
- Overrides:
getMessagein classThrowable
-
getFieldName
Get the field name.- Returns:
- field name
-
getExisingFieldNames
Get the existing field names.- Returns:
- existing field names
-