01: /* -*- mode: Java; c-basic-offset: 2; -*- */
02:
03: package org.openlaszlo.sc;
04:
05: import org.openlaszlo.sc.parser.SimpleNode;
06:
07: public class CompilerImplementationError extends RuntimeException {
08: SimpleNode node;
09:
10: public CompilerImplementationError(String message) {
11: super (message);
12: this .node = null;
13: }
14:
15: public CompilerImplementationError(String message, SimpleNode node) {
16: super (message);
17: this .node = node;
18: }
19:
20: public String toString() {
21: return Compiler.getLocationString(node) + ": "
22: + super .toString();
23: }
24: }
25:
26: /**
27: * @copyright Copyright 2001-2007 Laszlo Systems, Inc. All Rights
28: * Reserved. Use is subject to license terms.
29: */
|