Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
fix: use resource type to identify type of error (#57)
* fix: use resource type to identify type of error * fix: add test for DatabaseNotFoundException
- Loading branch information
Showing
with
180 additions
and 56 deletions.
- +8 −3 google-cloud-spanner/src/main/java/com/google/cloud/spanner/DatabaseNotFoundException.java
- +8 −3 google-cloud-spanner/src/main/java/com/google/cloud/spanner/SessionNotFoundException.java
- +19 −0 google-cloud-spanner/src/main/java/com/google/cloud/spanner/SpannerException.java
- +25 −12 google-cloud-spanner/src/main/java/com/google/cloud/spanner/SpannerExceptionFactory.java
- +12 −19 google-cloud-spanner/src/test/java/com/google/cloud/spanner/DatabaseClientImplTest.java
- +13 −1 google-cloud-spanner/src/test/java/com/google/cloud/spanner/MockSpannerServiceImpl.java
- +2 −4 google-cloud-spanner/src/test/java/com/google/cloud/spanner/SessionPoolStressTest.java
- +9 −10 google-cloud-spanner/src/test/java/com/google/cloud/spanner/SessionPoolTest.java
- +84 −4 google-cloud-spanner/src/test/java/com/google/cloud/spanner/SpannerExceptionFactoryTest.java
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
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
Oops, something went wrong.