@@ -238,15 +238,15 @@ public void testExecute3() {
238238 = "[" ;
239239 MethodScriptCompiler .execute (MethodScriptCompiler .compile (MethodScriptCompiler .lex (script , null , null , true ), null , envs ), env , null , null );
240240 fail ("Test passed, but wasn't supposed to" );
241- } catch (ConfigCompileException | ConfigCompileGroupException ex ) {
241+ } catch (AbstractCompileException ex ) {
242242 //Passed
243243 }
244244 try {
245245 String script
246246 = "]" ;
247247 MethodScriptCompiler .execute (MethodScriptCompiler .compile (MethodScriptCompiler .lex (script , null , null , true ), null , envs ), env , null , null );
248248 fail ("Test passed, but wasn't supposed to" );
249- } catch (ConfigCompileException | ConfigCompileGroupException ex ) {
249+ } catch (AbstractCompileException ex ) {
250250 //Passed
251251 }
252252 }
@@ -450,7 +450,7 @@ public void testCompile1() {
450450 String config = "/cmd [$p] $q = msg('')" ;
451451 MethodScriptCompiler .preprocess (MethodScriptCompiler .lex (config , null , null , false ), envs ).get (0 ).compile (env );
452452 fail ("Test passed, but wasn't supposed to" );
453- } catch (ConfigCompileException | ConfigCompileGroupException ex ) {
453+ } catch (AbstractCompileException ex ) {
454454 //Passed
455455 }
456456 }
@@ -495,7 +495,7 @@ public void testCompile2() {
495495 String config = "/cmd [$p=player()] = msg('')" ;
496496 MethodScriptCompiler .preprocess (MethodScriptCompiler .lex (config , null , null , false ), envs ).get (0 ).compile (env );
497497 fail ("Test passed, but wasn't supposed to" );
498- } catch (ConfigCompileException | ConfigCompileGroupException ex ) {
498+ } catch (AbstractCompileException ex ) {
499499 //Passed
500500 }
501501 }
0 commit comments