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 SummaryFields Modifier and Type Field Description static java.lang.StringOVERRIDE_VALUE- 
Fields inherited from interface com.amazonaws.xray.strategy.ContextMissingStrategyCONTEXT_MISSING_STRATEGY_ENVIRONMENT_VARIABLE_OVERRIDE_KEY, CONTEXT_MISSING_STRATEGY_SYSTEM_PROPERTY_OVERRIDE_KEY
 
- 
 - 
Constructor SummaryConstructors Constructor Description RuntimeErrorContextMissingStrategy()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcontextMissing(java.lang.String message, java.lang.Class<? extends java.lang.RuntimeException> exceptionClass)Constructs an instance ofexceptionClassand throws it.
 
- 
- 
- 
Field Detail- 
OVERRIDE_VALUEpublic static final java.lang.String OVERRIDE_VALUE - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
contextMissingpublic void contextMissing(java.lang.String message, java.lang.Class<? extends java.lang.RuntimeException> exceptionClass)Constructs an instance ofexceptionClassand throws it.- Specified by:
- contextMissingin interface- ContextMissingStrategy
- Parameters:
- message- the message to use when constructing an instance of- exceptionClass
- exceptionClass- the type of exception thrown due to missing context
 
 
- 
 
-