When a node is going down, remove edges in both directions associated with the node.
[controller.git] / opendaylight / sal / yang-prototype / yang / yang-model-parser-impl / src / main / java / org / opendaylight / controller / yang / parser / impl / YangErrorListener.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.controller.yang.parser.impl;
9
10 import org.antlr.v4.runtime.BaseErrorListener;
11 import org.antlr.v4.runtime.RecognitionException;
12 import org.antlr.v4.runtime.Recognizer;
13 import org.slf4j.Logger;
14 import org.slf4j.LoggerFactory;
15
16 final class YangErrorListener extends BaseErrorListener {
17     private final static Logger logger = LoggerFactory.getLogger(YangErrorListener.class);
18
19     @Override
20     public void syntaxError(Recognizer<?, ?> recognizer, Object offendingSymbol, int line, int charPositionInLine,
21             String msg, RecognitionException e) {
22         logger.warn("line " + line + ":" + charPositionInLine + " " + msg);
23     }
24
25 }