@@ -609,7 +609,7 @@ public Integer[] numArgs() {
609609 @ Override
610610 public Construct exec (Target t , Environment env , Construct ... args ) throws CancelCommandException , ConfigRuntimeException {
611611 if (!(args [0 ] instanceof CArray )) {
612- throw ConfigRuntimeException .BuildException ("Argument 1 of " + this .getName () + " must be an array" , ExceptionType . CastException , t );
612+ throw ConfigRuntimeException .BuildException ("Argument 1 of " + this .getName () + " must be an array" , CRECastException . class , t );
613613 }
614614 CArray ca = (CArray ) args [0 ];
615615 for (Construct key : ca .keySet ()){
@@ -713,7 +713,7 @@ public Construct exec(Target t, Environment environment, Construct... args) thro
713713 }
714714 return CBoolean .FALSE ;
715715 } else {
716- throw ConfigRuntimeException .BuildException ("Argument 1 of " + this .getName () + " must be an array" , ExceptionType . CastException , t );
716+ throw ConfigRuntimeException .BuildException ("Argument 1 of " + this .getName () + " must be an array" , CRECastException . class , t );
717717 }
718718 }
719719
@@ -749,7 +749,7 @@ public Integer[] numArgs() {
749749 @ Override
750750 public Construct exec (Target t , Environment env , Construct ... args ) throws CancelCommandException , ConfigRuntimeException {
751751 if (!(args [0 ] instanceof CArray )) {
752- throw ConfigRuntimeException .BuildException ("Argument 1 of " + this .getName () + " must be an array" , ExceptionType . CastException , t );
752+ throw ConfigRuntimeException .BuildException ("Argument 1 of " + this .getName () + " must be an array" , CRECastException . class , t );
753753 }
754754 CArray ca = (CArray ) args [0 ];
755755 for (Construct key : ca .keySet ()){
@@ -761,8 +761,8 @@ public Construct exec(Target t, Environment env, Construct... args) throws Cance
761761 }
762762
763763 @ Override
764- public ExceptionType [] thrown () {
765- return new ExceptionType []{ExceptionType . CastException };
764+ public Class [] thrown () {
765+ return new Class []{CRECastException . class };
766766 }
767767
768768 @ Override
0 commit comments