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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi;
Int the ported Junit code, why does AssertionFailedError extend ClasspathError instead of Error?
Thanks dave
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.
That makes sense - thanks