Class RuntimeErrorContextMissingStrategy

java.lang.Object
com.amazonaws.xray.strategy.RuntimeErrorContextMissingStrategy
All Implemented Interfaces:
ContextMissingStrategy

public class RuntimeErrorContextMissingStrategy extends Object implements ContextMissingStrategy
  • Field Details

  • Constructor Details

    • RuntimeErrorContextMissingStrategy

      public RuntimeErrorContextMissingStrategy()
  • Method Details

    • contextMissing

      public void contextMissing(String message, Class<? extends 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