Class RuntimeErrorContextMissingStrategy

java.lang.Object
com.amazonaws.xray.strategy.RuntimeErrorContextMissingStrategy
All Implemented Interfaces:
ContextMissingStrategy
Direct Known Subclasses:
DefaultContextMissingStrategy

public class RuntimeErrorContextMissingStrategy
extends java.lang.Object
implements ContextMissingStrategy
  • Field Details

  • Constructor Details

    • RuntimeErrorContextMissingStrategy

      public RuntimeErrorContextMissingStrategy()
  • Method Details

    • contextMissing

      public void contextMissing​(java.lang.String message, java.lang.Class<? extends java.lang.RuntimeException> exceptionClass)
      Constructs an instance of exceptionClass and throws it.
      Specified by:
      contextMissing in interface ContextMissingStrategy
      Parameters:
      message - the message to use when constructing an instance of exceptionClass
      exceptionClass - the type of exception thrown due to missing context