- 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
public class FieldExistsException extends DRException
Exception indicating a field already exists in a field namespace such as a record.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FieldExistsException(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]
getExisingFieldNames()
Get the existing field names.String
getFieldName()
Get the field name.String
getMessage()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
FieldExistsException
public FieldExistsException(String fieldName, String... existingFieldNames)
Construct the exception without a message.- Parameters:
fieldName
- name of the field that already existsexistingFieldNames
- 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 messagefieldName
- name of the field that already existsexistingFieldNames
- name of all existing fields
-
-
Method Detail
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
getFieldName
public String getFieldName()
Get the field name.- Returns:
- field name
-
getExisingFieldNames
public String[] getExisingFieldNames()
Get the existing field names.- Returns:
- existing field names
-
-