Java Code Examples for com.mysql.cj.exceptions.MysqlErrorNumbers#SQL_STATE_GENERAL_ERROR

The following examples show how to use com.mysql.cj.exceptions.MysqlErrorNumbers#SQL_STATE_GENERAL_ERROR . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PacketTooBigException.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
public PacketTooBigException(String message) {
    super(message, MysqlErrorNumbers.SQL_STATE_GENERAL_ERROR);
}
 
Example 2
Source File: NotUpdatable.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Append the given reason to the not updatable message if the reason is not
 * null.
 */
public NotUpdatable(String reason) {
    super(reason + Messages.getString("NotUpdatable.1") + Messages.getString("NotUpdatable.2") + Messages.getString("NotUpdatable.3")
            + Messages.getString("NotUpdatable.4") + Messages.getString("NotUpdatable.5"), MysqlErrorNumbers.SQL_STATE_GENERAL_ERROR);
}
 
Example 3
Source File: PacketTooBigException.java    From FoxTelem with GNU General Public License v3.0 4 votes vote down vote up
public PacketTooBigException(String message) {
    super(message, MysqlErrorNumbers.SQL_STATE_GENERAL_ERROR);
}
 
Example 4
Source File: PacketTooBigException.java    From lams with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Creates a new PacketTooBigException object.
 * 
 * @param packetSize
 *            the size of the packet that was going to be sent
 * @param maximumPacketSize
 *            the maximum size the server will accept
 */
public PacketTooBigException(long packetSize, long maximumPacketSize) {
    super(Messages.getString("PacketTooBigException.0", new Object[] { packetSize, maximumPacketSize }), MysqlErrorNumbers.SQL_STATE_GENERAL_ERROR);
}
 
Example 5
Source File: PacketTooBigException.java    From FoxTelem with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Creates a new PacketTooBigException object.
 * 
 * @param packetSize
 *            the size of the packet that was going to be sent
 * @param maximumPacketSize
 *            the maximum size the server will accept
 */
public PacketTooBigException(long packetSize, long maximumPacketSize) {
    super(Messages.getString("PacketTooBigException.0", new Object[] { packetSize, maximumPacketSize }), MysqlErrorNumbers.SQL_STATE_GENERAL_ERROR);
}
 
Example 6
Source File: NotUpdatable.java    From FoxTelem with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Create a new NotUpdatable exception. Append the given reason to the not updatable message if the reason is not null.
 * 
 * @param reason
 *            message for this exception.
 */
public NotUpdatable(String reason) {
    super(reason + Messages.getString("NotUpdatable.1"), MysqlErrorNumbers.SQL_STATE_GENERAL_ERROR);
}