Package com.amazonaws.xray.strategy
Class RuntimeErrorContextMissingStrategy
java.lang.Object
com.amazonaws.xray.strategy.RuntimeErrorContextMissingStrategy
- All Implemented Interfaces:
ContextMissingStrategy
-
Field Summary
FieldsFields 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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
contextMissing
(String message, Class<? extends RuntimeException> exceptionClass) Constructs an instance ofexceptionClass
and throws it.
-
Field Details
-
OVERRIDE_VALUE
- See Also:
-
-
Constructor Details
-
RuntimeErrorContextMissingStrategy
public RuntimeErrorContextMissingStrategy()
-
-
Method Details
-
contextMissing
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
-