/* Copyright (c) 1997 George Reese */
package COM.imaginary.sql.msql;
import java.sql.SQLException;
/**
* This class is an SQLException that has special constructors for
* messages directly from mSQL.<BR>
* Last modified 97/04/07
* @version @(#) MsqlException.java 1.2@(#)
* @author George Reese (borg@imaginary.com)
*/
public class MsqlException extends SQLException {
/**
* Constructs an MsqlException based on an error message from mSQL.
* @param data an error message starting with -1:
*/
public MsqlException(String data) {
super(data.substring(3));
}
/**
* Constructs an MsqlException based on some odd exception.
* @param e the exception that caused this to be thrown.
*/
public MsqlException(Exception e) {
super(e.getMessage());
}
}
|