- 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
public class InvalidFieldException extends DRException
Exception indicating reference to an invalid field (or fields) in a record structure.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InvalidFieldException(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]getAvailableFields()Retrieves an array of valid field names which were available.String[]getInvalidFields()Retrieves an array of invalid field names.StringgetMessage()Retrieves message of the super class with a list of the names of all invalid fields in lexicographic order appended.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
InvalidFieldException
public InvalidFieldException(Collection<String> invalid, Collection<String> available)
Constructs anInvalidFieldExceptionwith an empty message.- Parameters:
invalid- UnorderedCollectionof the names of invalid fieldsavailable- UnorderedCollectionof the names of valid fields which were available
-
InvalidFieldException
public InvalidFieldException(String msg, Collection<String> invalid, Collection<String> available)
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 Detail
-
getMessage
public String 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
public String[] getInvalidFields()
Retrieves an array of invalid field names.- Returns:
String[]of invalid field names
-
getAvailableFields
public String[] getAvailableFields()
Retrieves an array of valid field names which were available.- Returns:
String[]of valid field names
-
-