Revision ea46fe03

View differences:

.gitignore
10 10
/ide/sequencechart/.classpath
11 11
/ide/sequencechart/.project
12 12
/ide/sequencechart/.settings/
13
/ide/about.html
14
/ide/about_files/
15
/ide/artifacts.xml
16
/ide/configuration/
17
/ide/features/
18
/ide/icon.png
19
/ide/icon.xpm
20
/ide/libcairo-swt.so
21
/ide/linux/
22
/ide/linux64/
23
/ide/macosx/
24
/ide/omnetpp
25
/ide/omnetpp.ini
26
/ide/p2/
27
/ide/plugins/
28
/ide/win32/
29
/ide/org.omnetpp.ide.nativelibs.linux.x86_64
30
/ide/org.omnetpp.ide.nativelibs/.classpath
31
/ide/org.omnetpp.ide.nativelibs/.project
32
/ide/org.omnetpp.ide.nativelibs/.settings/
33
/ide/org.omnetpp.ide.nativelibs/*.cxx
34
/ide/org.omnetpp.sequencechart/.classpath
35
/ide/org.omnetpp.sequencechart/.project
36
/ide/org.omnetpp.sequencechart/.settings/
37
/ide/org.omnetpp.sequencechart/bin/
38
/ide/org.omnetpp.sequencechart/src/sequencechart/
ide/org.omnetpp.ide.nativelibs/src/org/omnetpp/scave/engineext/ResultFileFormatException.java
1
/*--------------------------------------------------------------*
2
  Copyright (C) 2006-2008 OpenSim Ltd.
3

  
4
  This file is distributed WITHOUT ANY WARRANTY. See the file
5
  'License' for details on this and other legal matters.
6
*--------------------------------------------------------------*/
7

  
8
package org.omnetpp.scave.engineext;
9

  
10
/**
11
 * Exception that signals format errors in a vector or scalar file.
12
 * Gets instantiated and thrown from JNI code (SWIG wrapper).
13
 *
14
 * @author tomi
15
 */
16
public class ResultFileFormatException extends RuntimeException {
17
	private static final long serialVersionUID = -6998263415457737351L;
18

  
19
	private String fileName;
20
	private int lineNo;
21

  
22
	public ResultFileFormatException(String msg) {
23
		super(msg);
24
	}
25

  
26
	public ResultFileFormatException(String msg, String fileName, int lineNo) {
27
		super(msg);
28
		this.fileName = fileName;
29
		this.lineNo = lineNo;
30
	}
31

  
32
	public String getFileName() {
33
		return fileName;
34
	}
35

  
36
	public int getLineNo() {
37
		return lineNo;
38
	}
39
}

Also available in: Unified diff