Class BatchTestCase.Bomb

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    BatchTestCase

    static class BatchTestCase.Bomb
    extends java.lang.Error
    Fake exception to interrupt the test when we see the desired query. It is an Error because we need it to be unchecked (Exception is checked), and we don't want handlers to handle it.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.lang.String sql  
    • Constructor Summary

      Constructors 
      Constructor Description
      Bomb​(java.lang.String sql)  
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • sql

        final java.lang.String sql
    • Constructor Detail

      • Bomb

        Bomb​(java.lang.String sql)