-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from ydb-platform/release_v2.0.5
Release v2.0.5
- Loading branch information
Showing
9 changed files
with
92 additions
and
9 deletions.
There are no files selected for viewing
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
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
25 changes: 25 additions & 0 deletions
25
jdbc/src/main/java/tech/ydb/jdbc/exception/YdbTimeoutException.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,25 @@ | ||
package tech.ydb.jdbc.exception; | ||
|
||
import java.sql.SQLTimeoutException; | ||
|
||
import tech.ydb.core.Status; | ||
import tech.ydb.core.UnexpectedResultException; | ||
|
||
/** | ||
* | ||
* @author Aleksandr Gorshenin | ||
*/ | ||
public class YdbTimeoutException extends SQLTimeoutException { | ||
private static final long serialVersionUID = -6309565506198809222L; | ||
|
||
private final Status status; | ||
|
||
YdbTimeoutException(String message, String sqlState, int code, UnexpectedResultException cause) { | ||
super(message, sqlState, code, cause); | ||
this.status = cause.getStatus(); | ||
} | ||
|
||
public Status getStatus() { | ||
return status; | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
jdbc/src/main/java/tech/ydb/jdbc/exception/YdbUnavailbaleException.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,26 @@ | ||
package tech.ydb.jdbc.exception; | ||
|
||
import java.sql.SQLTransientConnectionException; | ||
|
||
import tech.ydb.core.Status; | ||
import tech.ydb.core.UnexpectedResultException; | ||
|
||
/** | ||
* | ||
* @author Aleksandr Gorshenin | ||
*/ | ||
public class YdbUnavailbaleException extends SQLTransientConnectionException { | ||
private static final long serialVersionUID = 7162301155514557562L; | ||
|
||
private final Status status; | ||
|
||
YdbUnavailbaleException(String message, String sqlState, int code, UnexpectedResultException cause) { | ||
super(message, sqlState, code, cause); | ||
this.status = cause.getStatus(); | ||
} | ||
|
||
public Status getStatus() { | ||
return status; | ||
} | ||
|
||
} |
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