01: /*
02: * MissingWidthDefinition.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.sql.wbcommands;
13:
14: /**
15: *
16: * @author support@sql-workbench.net
17: */
18: public class MissingWidthDefinition extends Exception {
19: private String colname;
20:
21: public MissingWidthDefinition(String col) {
22: colname = col;
23: }
24:
25: public String getColumnName() {
26: return colname;
27: }
28:
29: @Override
30: public String getMessage() {
31: return "Missing or invalid width definition for: " + colname;
32: }
33: }
|