Menu

AssertionFailedError extends ClasspathError?

2005-10-01
2013-05-01
  • Nobody/Anonymous

    Hi;

    Int the ported Junit code, why does AssertionFailedError extend ClasspathError instead of Error?

    Thanks  dave

     
    • Kazuya Ujihara

      Kazuya Ujihara - 2005-10-03

      There are several differences about exception handling between CLR and JavaVM.
      For example, J#'s Throwable doesn't have infomation of inner error.
      Stacks on exception are quite different. And so on.
      ClasspathError, ClasspathException and ClasspathThrowable are class to bridge the differences.
      See ClasspathThrowableStuff#toIClasspathThrowable method. The method does complicated things beyond your expectation.

       
    • David Thielen

      David Thielen - 2005-10-03

      That makes sense - thanks

       

Log in to post a comment.