01: /*
02: * CycleErrorException.java
03: *
04: * This file is part of SQL Workbench/J, http://www.sql-workbench.net
05: *
06: * Copyright 2002-2008, Thomas Kellerer
07: * No part of this code maybe reused without the permission of the author
08: *
09: * To contact the author please send an email to: support@sql-workbench.net
10: *
11: */
12: package workbench.db.importer;
13:
14: import workbench.db.TableIdentifier;
15:
16: /**
17: *
18: * @author support@sql-workbench.net
19: */
20: public class CycleErrorException extends Exception {
21: private TableIdentifier root;
22:
23: public CycleErrorException(TableIdentifier tbl) {
24: super ();
25: root = tbl;
26: }
27:
28: public String getMessage() {
29: return "A cyclic dependency was detected for root table '"
30: + root.getTableExpression() + "'";
31: }
32:
33: public TableIdentifier getRootTable() {
34: return root;
35: }
36: }
|