org.firebirdsql.jca.FBResourceTransactionException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jaybird Show documentation
Show all versions of jaybird Show documentation
JDBC Driver for the Firebird RDBMS
/*
* Firebird Open Source JavaEE Connector - JDBC Driver
*
* Distributable under LGPL license.
* You may obtain a copy of the License at http://www.gnu.org/copyleft/lgpl.html
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* LGPL License for more details.
*
* This file was created by members of the firebird development team.
* All individual contributions remain the Copyright (C) of those
* individuals. Contributors to this file are either listed here or
* can be obtained from a source control history command.
*
* All rights reserved.
*/
package org.firebirdsql.jca;
/**
* Exception represents transaction error in resource.
*
* @author Roman Rokytskyy
*/
public class FBResourceTransactionException extends FBResourceException {
/**
* Create a new instance of {@code FBResourceTransactionException} with a given message and generic error code
*
* @param reason
* The string message for this exception
*/
public FBResourceTransactionException(String reason) {
super(reason);
}
/**
* Create a new instance of {@code FBResourceTransactionException} with a given message and error code.
*
* @param reason
* The string message for this exception
* @param errorCode
* The error code for this exception
*/
public FBResourceTransactionException(String reason, String errorCode) {
super(reason, errorCode);
}
/**
* Create a new instance of {@code FBResourceTransactionException} with a given message and sub-exception.
*
* @param reason
* The string message for this exception
* @param cause
* The underlying exception
*/
public FBResourceTransactionException(String reason, Exception cause) {
super(reason, cause);
}
/**
* Create a new instance of {@code FBResourceException} with a given message, error code and underlying exception.
*
* @param reason
* The string message for this exception
* @param errorCode
* The error code for this exception
* @param cause
* The underlying exception
*/
public FBResourceTransactionException(String reason, String errorCode, Exception cause) {
super(reason, cause);
setErrorCode(errorCode);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy