~ubuntu-branches/ubuntu/vivid/sablecc/vivid

« back to all changes in this revision

Viewing changes to src/org/sablecc/sablecc/parser/ParserException.java

  • Committer: Bazaar Package Importer
  • Author(s): Etienne M. Gagnon
  • Date: 2004-01-25 13:28:01 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040125132801-0so74ui506b30b1q
Tags: 2.18.2-1
* New upstream release.
* Keep the org.sablecc.ant.taskdef.Sablecc ant task of the upstream
  package, closes: #213020.
* Improve man page.
* Update Standards-Version to 3.6.1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
2
 
 * This file is part of SableCC.                             *
3
 
 * See the file "LICENSE" for copyright information and the  *
4
 
 * terms and conditions for copying, distribution and        *
5
 
 * modification of SableCC.                                  *
6
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
 
1
/* This file was generated by SableCC (http://www.sablecc.org/). */
7
2
 
8
3
package org.sablecc.sablecc.parser;
9
4
 
 
5
import org.sablecc.sablecc.node.*;
 
6
 
10
7
public class ParserException extends Exception
11
8
{
12
 
    ParserException(String  message)
13
 
    {
14
 
        super(message);
15
 
    }
 
9
  Token token;
 
10
 
 
11
  public ParserException(Token token, String  message)
 
12
  {
 
13
    super(message);
 
14
    this.token = token;
 
15
  }
 
16
 
 
17
  public Token getToken()
 
18
  {
 
19
    return token;
 
20
  }
16
21
}