|
|||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
UnexpectedOperatorException.java | - | 0% | 0% | 0% |
|
1 | /* $Id: UnexpectedOperatorException.java,v 1.3 2007/02/25 20:05:35 m31 Exp $ | |
2 | * | |
3 | * This file is part of the project "Hilbert II" - http://www.qedeq.org | |
4 | * | |
5 | * Copyright 2000-2007, Michael Meyling <mime@qedeq.org>. | |
6 | * | |
7 | * "Hilbert II" is free software; you can redistribute | |
8 | * it and/or modify it under the terms of the GNU General Public | |
9 | * License as published by the Free Software Foundation; either | |
10 | * version 2 of the License, or (at your option) any later version. | |
11 | * | |
12 | * This program is distributed in the hope that it will be useful, | |
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | * GNU General Public License for more details. | |
16 | */ | |
17 | ||
18 | package org.qedeq.kernel.parser; | |
19 | ||
20 | /** | |
21 | * Operator occurred unexpected. | |
22 | * | |
23 | * @version $Revision: 1.3 $ | |
24 | * @author Michael Meyling | |
25 | */ | |
26 | public class UnexpectedOperatorException extends ParserException { | |
27 | ||
28 | /** | |
29 | * Constructor. | |
30 | * | |
31 | * @param position Error position. | |
32 | * @param operator Operator unexpectedly found. | |
33 | */ | |
34 | 0 | public UnexpectedOperatorException(final long position, final Operator operator) { |
35 | 0 | super(position, "No operator expected, but found: " + operator); |
36 | } | |
37 | ||
38 | } |
|