Package io.deephaven.engine.table.impl
Class NoSuchColumnException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
io.deephaven.engine.table.impl.NoSuchColumnException
- All Implemented Interfaces:
Serializable
Exception thrown when a column is not found.
- See Also:
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ConstructorDescriptionNoSuchColumnException
(String message) Thrown when an operation can not find a required column(s).NoSuchColumnException
(Collection<String> presentColumns, String missingColumn) Thrown when an operation can not find a required column.NoSuchColumnException
(Collection<String> presentColumns, Collection<String> missingColumns) Thrown when an operation can not find a required column(s). -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Equivalent tothrowIf(available, Collections.singleton(requested))
.static void
throwIf
(Set<String> available, Collection<String> requested) Equivalent tothrowIf(available, requested, DEFAULT_FORMAT_STR, Type.MISSING, Type.AVAILABLE)
whereDEFAULT_FORMAT_STR
is "Unknown column names [%s], available column names are [%s]".static void
throwIf
(Set<String> available, Collection<String> requested, String formatStr, NoSuchColumnException.Type... types) Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
DELIMITER
- See Also:
-
DEFAULT_FORMAT_STR
- See Also:
-
-
Constructor Details
-
NoSuchColumnException
Thrown when an operation can not find a required column(s).Callers may prefer to use
throwIf(Set, Collection, String, Type...)
when applicable.- Parameters:
message
- the message
-
NoSuchColumnException
Thrown when an operation can not find a required column(s).Callers may prefer to use
throwIf(Set, Collection)
when applicable.- Parameters:
presentColumns
- the column names present in the tablemissingColumns
- the request column names that were not found
-
NoSuchColumnException
Thrown when an operation can not find a required column.- Parameters:
presentColumns
- the column names present in the tablemissingColumn
- the request column name that was not found
-
-
Method Details
-
throwIf
Equivalent tothrowIf(available, Collections.singleton(requested))
.- Parameters:
available
- the available columnsrequested
- the requested columns- See Also:
-
throwIf
Equivalent tothrowIf(available, requested, DEFAULT_FORMAT_STR, Type.MISSING, Type.AVAILABLE)
whereDEFAULT_FORMAT_STR
is "Unknown column names [%s], available column names are [%s]".- Parameters:
available
- the available columnsrequested
- the requested columns- See Also:
-
throwIf
public static void throwIf(Set<String> available, Collection<String> requested, String formatStr, NoSuchColumnException.Type... types) Throws aNoSuchColumnException
if any name fromrequested
is not inavailable
. The message will be constructed byjoining
the respective collection with ", " and presenting them toformat
intypes
order.- Parameters:
available
- the available columnsrequested
- the requested columnsformatStr
- the format stringtypes
- the collection types order for formatting
-