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
|
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. |
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.
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.
Copyright © 2004 J. Damon & Co.; All Rights Reserved WorldWide.