Class AssertionFailedException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.mysql.cj.exceptions.CJException
com.mysql.cj.exceptions.AssertionFailedException
All Implemented Interfaces:
java.io.Serializable

public class AssertionFailedException
extends CJException
Assertions for empty code paths that should never be executed.
See Also:
Serialized Form
  • Constructor Details

    • AssertionFailedException

      public AssertionFailedException​(java.lang.Exception ex)
      Creates an AssertionFailedException for the given exception that should never have been thrown.
      Parameters:
      ex - the exception that should never have been thrown.
    • AssertionFailedException

      public AssertionFailedException​(java.lang.String assertion)
      Creates an AssertionFailedException for the reason given.
      Parameters:
      assertion - a description of the assertion that failed
  • Method Details