if(value instanceof Double) {\r
if(Double.isNaN((Double)value)) {\r
System.err.println("value is invalid (NaN): " + var.base.name);\r
- throw new IllegalStateException("value is invalid (NaN)");\r
+ throw new IllegalStateException("value is invalid (NaN): " + var.base.name);\r
}\r
if(Double.isInfinite((Double)value)) {\r
System.err.println("value is invalid (Infinite): " + var.base.name);\r
- throw new IllegalStateException("value is invalid (Infinite)");\r
+ throw new IllegalStateException("value is invalid (Infinite): " + var.base.name);\r
}\r
}\r
if(value instanceof Array) {\r
if(value instanceof Double) {\r
if(Double.isNaN((Double)value)) {\r
System.err.println("value is invalid (NaN): " + var.base.name);\r
- throw new IllegalStateException("value is invalid (NaN)");\r
+ throw new IllegalStateException("value is invalid (NaN): " + var.base.name);\r
}\r
if(Double.isInfinite((Double)value)) {\r
System.err.println("value is invalid (Infinite): " + var.base.name);\r
- throw new IllegalStateException("value is invalid (Infinite)");\r
+ throw new IllegalStateException("value is invalid (Infinite): " + var.base.name);\r
}\r
}\r
if(value instanceof Array) {\r