View Javadoc
1   package net.avcompris.commons3.yaml;
2   
3   import javax.annotation.Nullable;
4   
5   public class YamlReaderException extends RuntimeException {
6   
7   	/**
8   	 * For serialization.
9   	 */
10  	private static final long serialVersionUID = -2263882857057481417L;
11  
12  	private final int lineNumber;
13  	private final int columnNumber;
14  
15  	public final int getLineNumber() {
16  
17  		return lineNumber;
18  	}
19  
20  	public final int getColumnNumber() {
21  
22  		return columnNumber;
23  	}
24  
25  	public YamlReaderException(final int lineNumber, final int columnNumber, @Nullable final String message) {
26  
27  		super(lineNumber + ":" + columnNumber + ": " + message);
28  
29  		this.lineNumber = lineNumber;
30  		this.columnNumber = columnNumber;
31  	}
32  }