-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HHH-18772 introduce AuthException and simplify SQLStateConversionDele…
…gate Signed-off-by: Gavin King <gavin@hibernate.org>
- Loading branch information
Showing
4 changed files
with
90 additions
and
81 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
hibernate-core/src/main/java/org/hibernate/exception/AuthException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* | ||
* SPDX-License-Identifier: LGPL-2.1-or-later | ||
* Copyright Red Hat Inc. and Hibernate Authors | ||
*/ | ||
package org.hibernate.exception; | ||
|
||
import org.hibernate.JDBCException; | ||
|
||
import java.sql.SQLException; | ||
|
||
/** | ||
* A {@link JDBCException} indicating an authentication or authorization failure. | ||
* | ||
* @since 7.0 | ||
* | ||
* @author Gavin King | ||
*/ | ||
public class AuthException extends JDBCException { | ||
/** | ||
* Constructor for AuthException. | ||
* | ||
* @param root The underlying exception. | ||
*/ | ||
public AuthException(String message, SQLException root) { | ||
super( message, root ); | ||
} | ||
|
||
/** | ||
* Constructor for AuthException. | ||
* | ||
* @param message Optional message. | ||
* @param root The underlying exception. | ||
*/ | ||
public AuthException(String message, SQLException root, String sql) { | ||
super( message, root, sql ); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters