better toString()

This commit is contained in:
Andrey Breslav
2013-10-13 16:01:55 +04:00
parent 848a9c56b2
commit 1c07c42b2c
+3 -1
View File
@@ -45,7 +45,9 @@ trait InterpretationEventHandler {
fun exceptionCaught(currentState: Frame<Value>, currentInsn: AbstractInsnNode, exception: Value): InterpreterResult?
}
class ThrownFromEvalException(val exception: Value): RuntimeException()
class ThrownFromEvalException(val exception: Value): RuntimeException() {
fun toString(): String = "Thrown by evaluator: $exception"
}
fun interpreterLoop(
m: MethodNode,