Since the spec doesn't define the error code, java exception string is somewhat an internal implementation, but during development, it might be helpful to know what exactly happen in Java side, if we got an error in JS. At this time point, keep your code.