Package org.apache.calcite.runtime
Class Resources.ExInstWithCause<T extends java.lang.Exception>
- java.lang.Object
-
- org.apache.calcite.runtime.Resources.Element
-
- org.apache.calcite.runtime.Resources.Inst
-
- org.apache.calcite.runtime.Resources.ExInstWithCause<T>
-
- Direct Known Subclasses:
Feature
,Resources.ExInst
- Enclosing class:
- Resources
public static class Resources.ExInstWithCause<T extends java.lang.Exception> extends Resources.Inst
Sub-class ofResources.Inst
that can throw an exception. Requires caused by exception.
-
-
Field Summary
-
Fields inherited from class org.apache.calcite.runtime.Resources.Inst
args, base
-
Fields inherited from class org.apache.calcite.runtime.Resources.Element
key, method
-
-
Constructor Summary
Constructors Constructor Description ExInstWithCause(java.lang.String base, java.util.Locale locale, java.lang.reflect.Method method, java.lang.Object... args)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description T
ex(java.lang.Throwable cause)
static java.lang.Class
getExceptionClass(java.lang.reflect.Type type)
Resources.Inst
localize(java.util.Locale locale)
void
validate(java.util.EnumSet<Resources.Validation> validations)
protected void
validateException(java.util.concurrent.Callable<java.lang.Exception> exSupplier)
-
Methods inherited from class org.apache.calcite.runtime.Resources.Inst
bundle, equals, getProperties, hashCode, raw, str
-
Methods inherited from class org.apache.calcite.runtime.Resources.Element
deriveKey
-
-
-
-
Method Detail
-
localize
public Resources.Inst localize(java.util.Locale locale)
- Overrides:
localize
in classResources.Inst
-
ex
public T ex(java.lang.Throwable cause)
-
getExceptionClass
public static java.lang.Class getExceptionClass(java.lang.reflect.Type type)
-
validateException
protected void validateException(java.util.concurrent.Callable<java.lang.Exception> exSupplier)
-
validate
public void validate(java.util.EnumSet<Resources.Validation> validations)
- Overrides:
validate
in classResources.Inst
-
-