@@ -0,0 +1,1045 @@
+/*%0A * Copyright (c) 2015 Guillaume Hillairet.%0A * All rights reserved. This program and the accompanying materials%0A * are made available under the terms of the Eclipse Public License v1.0%0A * which accompanies this distribution, and is available at%0A * http://www.eclipse.org/legal/epl-v10.html%0A *%0A * Contributors:%0A *     Guillaume Hillairet - initial API and implementation%0A */%0Apackage org.emfjson.jackson.errors;%0A%0Aimport org.eclipse.emf.ecore.resource.Resource;%0A%0Aimport com.fasterxml.jackson.core.JsonLocation;%0A%0Apublic class JSONException extends Exception implements Resource.Diagnostic %7B%0A%0A%09private final String location;%0A%09private final int line;%0A%09private final int column;%0A%0A%09public JSONException(Exception e, JsonLocation location) %7B%0A%09%09super(e);%0A%09%09this.location = location.toString();%0A%09%09this.line = location.getLineNr();%0A%09%09this.column = location.getColumnNr();%0A%09%7D%0A%0A%09@Override%0A%09public String getLocation() %7B%0A%09%09return location;%0A%09%7D%0A%0A%09@Override%0A%09public int getLine() %7B%0A%09%09return line;%0A%09%7D%0A%0A%09@Override%0A%09public int getColumn() %7B%0A%09%09return column;%0A%09%7D%0A%0A%7D%0A

Enable strict mode during parsing of json files