if (type != null && type.error != null) { throw new EvaluatorException(type.error.toString());
if (type != null && type.hasError()) { throw new EvaluatorException(type.getError());
    public Scriptable getValidPrototype(String protoName) {        if (globalError != null) {            throw new EvaluatorException(globalError.toString());        }        TypeInfo type = getPrototypeInfo(protoName);        if (type != null && type.error != null) {            throw new EvaluatorException(type.error.toString());        }        return type == null ? null : type.objectPrototype;    }