support decode java.lang.*Error as js Error