public class InvalidFieldException extends DRException
Constructor and Description |
---|
InvalidFieldException(Collection<String> invalid,
Collection<String> available)
Constructs an
InvalidFieldException with an empty message. |
InvalidFieldException(String msg,
Collection<String> invalid,
Collection<String> available)
Constructs an
InvalidFieldException with the specified
message. |
Modifier and Type | Method and 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.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public InvalidFieldException(Collection<String> invalid, Collection<String> available)
InvalidFieldException
with an empty message.invalid
- Unordered Collection
of the names of
invalid fieldsavailable
- Unordered Collection
of the names of
valid fields which were availablepublic InvalidFieldException(String msg, Collection<String> invalid, Collection<String> available)
InvalidFieldException
with the specified
message.msg
- String
containing the desired messageinvalid
- Unordered Collection
of the names of
invalid fieldsavailable
- Unordered Collection
of the names of
valid fields which were availablepublic String getMessage()
getMessage
in class Throwable
String
containing the message of this exception
followed by a list of invalid field namespublic String[] getInvalidFields()
String[]
of invalid field namespublic String[] getAvailableFields()
String[]
of valid field namesCopyright © 2016 Actian Corporation. All rights reserved.