From 895cc66a75e1df13e969fc46ced40a4c0b9ad214 Mon Sep 17 00:00:00 2001
From: Sven Gestegard Robertz <sven.robertz@cs.lth.se>
Date: Wed, 25 Jun 2014 11:14:27 +0200
Subject: [PATCH] Added explanatory message to UnsupportedOperationException

---
 compiler/RAPID_CodeGen.jrag | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compiler/RAPID_CodeGen.jrag b/compiler/RAPID_CodeGen.jrag
index 9910048..9759b94 100644
--- a/compiler/RAPID_CodeGen.jrag
+++ b/compiler/RAPID_CodeGen.jrag
@@ -194,7 +194,7 @@ aspect RAPID_CodeGen {
 	}
 
 	public String Type.RAPID_AddType(RAPID_env env, String name) {
-		throw new UnsupportedOperationException();
+		throw new UnsupportedOperationException("RAPID_AddType not implemented for "+getClass().getSimpleName());
 	}
 
 	public String StructType.RAPID_AddType(RAPID_env env, String name) {
-- 
GitLab