Package com.amazonaws.xray.strategy
Class RuntimeErrorContextMissingStrategy
- java.lang.Object
-
- com.amazonaws.xray.strategy.RuntimeErrorContextMissingStrategy
-
- All Implemented Interfaces:
ContextMissingStrategy
public class RuntimeErrorContextMissingStrategy extends java.lang.Object implements ContextMissingStrategy
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
OVERRIDE_VALUE
-
Fields inherited from interface com.amazonaws.xray.strategy.ContextMissingStrategy
CONTEXT_MISSING_STRATEGY_ENVIRONMENT_VARIABLE_OVERRIDE_KEY, CONTEXT_MISSING_STRATEGY_SYSTEM_PROPERTY_OVERRIDE_KEY
-
-
Constructor Summary
Constructors Constructor Description RuntimeErrorContextMissingStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
contextMissing(java.lang.String message, java.lang.Class<? extends java.lang.RuntimeException> exceptionClass)
Constructs an instance ofexceptionClass
and throws it.
-
-
-
Field Detail
-
OVERRIDE_VALUE
public static final java.lang.String OVERRIDE_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
contextMissing
public void contextMissing(java.lang.String message, java.lang.Class<? extends java.lang.RuntimeException> exceptionClass)
Constructs an instance ofexceptionClass
and throws it.- Specified by:
contextMissing
in interfaceContextMissingStrategy
- Parameters:
message
- the message to use when constructing an instance ofexceptionClass
exceptionClass
- the type of exception thrown due to missing context
-
-