java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.pervasive.datarush.exceptions.DRException
com.pervasive.datarush.namespace.InvalidFieldException
- All Implemented Interfaces:
Serializable
Exception indicating reference to an invalid field (or fields) in a record
structure.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInvalidFieldException(String msg, Collection<String> invalid, Collection<String> available) Constructs anInvalidFieldExceptionwith the specified message.InvalidFieldException(Collection<String> invalid, Collection<String> available) Constructs anInvalidFieldExceptionwith an empty message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidFieldException
Constructs anInvalidFieldExceptionwith an empty message.- Parameters:
invalid- UnorderedCollectionof the names of invalid fieldsavailable- UnorderedCollectionof the names of valid fields which were available
-
InvalidFieldException
Constructs anInvalidFieldExceptionwith the specified message.- Parameters:
msg-Stringcontaining the desired messageinvalid- UnorderedCollectionof the names of invalid fieldsavailable- UnorderedCollectionof the names of valid fields which were available
-
-
Method Details
-
getMessage
Retrieves message of the super class with a list of the names of all invalid fields in lexicographic order appended.- Overrides:
getMessagein classThrowable- Returns:
Stringcontaining the message of this exception followed by a list of invalid field names
-
getInvalidFields
Retrieves an array of invalid field names.- Returns:
String[]of invalid field names
-
getAvailableFields
Retrieves an array of valid field names which were available.- Returns:
String[]of valid field names
-