Class RuntimeErrorContextMissingStrategy

    • Constructor Detail

      • RuntimeErrorContextMissingStrategy

        public RuntimeErrorContextMissingStrategy()
    • Method Detail

      • 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