KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > teamkonzept > db > TKIllegalConversionException


1 /*
2  * $Header: /cvsroot/webman-cms/source/webman/com/teamkonzept/db/TKIllegalConversionException.java,v 1.6 2000/06/01 15:02:52 alex Exp $
3  *
4  */

5 package com.teamkonzept.db;
6
7 import java.sql.*;
8
9 public class TKIllegalConversionException extends SQLException
10 {
11     String JavaDoc from_type = null;
12     String JavaDoc to_type = null;
13     
14     public TKIllegalConversionException( final String JavaDoc from_type,
15                                          final String JavaDoc to_type )
16     {
17         super( "unable to convert " + from_type + " to " + to_type );
18         
19         this.from_type = from_type;
20         this.to_type = to_type;
21     }
22     public String JavaDoc toString()
23     {
24         return getMessage();
25     }
26     //{{DECLARE_CONTROLS
27
//}}
28
}
29
30
Popular Tags