Package com.amazonaws.xray.strategy
Class LogErrorContextMissingStrategy
- java.lang.Object
-
- com.amazonaws.xray.strategy.LogErrorContextMissingStrategy
-
- All Implemented Interfaces:
ContextMissingStrategy
- Direct Known Subclasses:
DefaultContextMissingStrategy
public class LogErrorContextMissingStrategy 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 LogErrorContextMissingStrategy()
-
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)
Logsmessage
on theerror
level, and a stacktrace atdebug
level.
-
-
-
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)
Logsmessage
on theerror
level, and a stacktrace atdebug
level.- Specified by:
contextMissing
in interfaceContextMissingStrategy
- Parameters:
message
- the message to logexceptionClass
- the type of exception suppressed in favor of loggingmessage
-
-