Skip to content

Commit

Permalink
docs: catch actual exception in java doc comment (#312)
Browse files Browse the repository at this point in the history
Fixes #309
  • Loading branch information
suraj-qlogic committed May 13, 2020
1 parent 466d08f commit 9201de5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
Expand Up @@ -726,11 +726,9 @@ public ReadChannel reader(BlobSourceOption... options) {
* <pre>{@code
* byte[] content = "Hello, World!".getBytes(UTF_8);
* try (WriteChannel writer = blob.writer()) {
* try {
* writer.write(ByteBuffer.wrap(content, 0, content.length));
* } catch (Exception ex) {
* // handle exception
* }
* } catch (IOException ex) {
* // handle exception
* }
* }</pre>
*
Expand Down
Expand Up @@ -2503,11 +2503,9 @@ Blob create(
* byte[] content = "Hello, World!".getBytes(UTF_8);
* BlobInfo blobInfo = BlobInfo.newBuilder(blobId).setContentType("text/plain").build();
* try (WriteChannel writer = storage.writer(blobInfo)) {
* try {
* writer.write(ByteBuffer.wrap(content, 0, content.length));
* } catch (Exception ex) {
* // handle exception
* }
* } catch (IOException ex) {
* // handle exception
* }
* }</pre>
*
Expand Down

0 comments on commit 9201de5

Please sign in to comment.