- 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 anInvalidFieldException
with the specified message.InvalidFieldException(Collection<String> invalid, Collection<String> available)
Constructs anInvalidFieldException
with 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.String
getMessage()
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 anInvalidFieldException
with an empty message.- Parameters:
invalid
- UnorderedCollection
of the names of invalid fieldsavailable
- UnorderedCollection
of the names of valid fields which were available
-
InvalidFieldException
public InvalidFieldException(String msg, Collection<String> invalid, Collection<String> available)
Constructs anInvalidFieldException
with the specified message.- Parameters:
msg
-String
containing the desired messageinvalid
- UnorderedCollection
of the names of invalid fieldsavailable
- UnorderedCollection
of 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:
getMessage
in classThrowable
- Returns:
String
containing 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
-
-