2004.04.29


com.jdc.rdb.sql
Class SQLMessage

java.lang.Object
  |
  +--com.jdc.lang.Object
        |
        +--com.jdc.rdb.sql.SQLMessage

public class SQLMessage
extends Object

SQLMessage represents a Structured Query Language (SQL) exception message. This is a utility class to convert an Object instance, exception method name, exception message, and, optionally, the original Exception object to an SQL message String.

Version:
2.0
Author:
Jay Damon
See Also:
SQL, SQLException

Field Summary
 
Fields inherited from class com.jdc.lang.Object
string
 
Constructor Summary
SQLMessage(Object object, String method, String message)
          Converts an Object instance, exception method name, and exception message.
SQLMessage(Object object, String method, String message, Exception exception)
          Converts an Object instance, exception method name, exception message, and original Exception object.
 
Method Summary
 String toString()
          Returns a String representation of this SQLMessage object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SQLMessage

public SQLMessage(Object object,
                  String method,
                  String message)
Converts an Object instance, exception method name, and exception message. message to a message text String.


SQLMessage

public SQLMessage(Object object,
                  String method,
                  String message,
                  Exception exception)
Converts an Object instance, exception method name, exception message, and original Exception object. message to a message text String.

Method Detail

toString

public String toString()
Returns a String representation of this SQLMessage object.

Overrides:
toString in class Object
Returns:
A String representation of this SQLMessage object.

2004.04.29



Copyright © 2004 J. Damon & Co.; All Rights Reserved WorldWide.