类 AssertionFailedException

  • 所有已实现的接口:
    Serializable

    public class AssertionFailedException
    extends CJException
    Assertions for empty code paths that should never be executed.
    另请参阅:
    序列化表格
    • 构造器详细资料

      • AssertionFailedException

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

        public AssertionFailedException​(String assertion)
        Creates an AssertionFailedException for the reason given.
        参数:
        assertion - a description of the assertion that failed