GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — BaseServiceException should not extend RuntimeException · Issue #703 · googleapis/google-cloud-java

BaseServiceException should not extend RuntimeException #703

New issue
Copy link
New issue
Copy link
Closed
Closed
BaseServiceException should not extend RuntimeException#703
Copy link
Assignees
dimo414

Description

@dimo414
dimo414
opened on Mar 2, 2016
Issue body actions

Maybe this ship has already sailed, but if it's still possible BaseServiceException should not extend RuntimeException. As is, I can't confidently make any calls to a gcloud-java method without wrapping them in a try-catch block, and should I accidentally miss one it could cause my whole application to crash. I would suggest it extend IOException instead, but just extending Exception would be great.

Activity

Next
  1. mziccard commented on Mar 2, 2016

    @mziccard
    mziccard
    on Mar 2, 2016
    Contributor
    More actions

    I can't confidently make any calls to a gcloud-java method without wrapping them in a try-catch block

    How would this be different if we extended IOException? You would still have to catch exceptions...

  2. mziccard commented on Mar 2, 2016

    @mziccard
    mziccard
    on Mar 2, 2016
    Contributor
    More actions

    If this is about checked vs unchecked exceptions my (strong) preference is to stick to unchecked. As a reference also AWS uses unchecked exceptions: AmazonClientException extends RuntimeException and AmazonServiceException extends AmazonClientException.

  3. ajkannan commented on Mar 3, 2016

    @ajkannan
    ajkannan
    on Mar 3, 2016
    More actions

    My preference is also to stay with unchecked exceptions. I do think we should make a pass through the library to make sure every method call that can throw an exception has the exception documented with an "@throws" in the javadoc. That way, people can avoid try/catch blocks for methods that don't return exceptions.

  4. aozarov commented on Mar 3, 2016

    @aozarov
    aozarov
    on Mar 3, 2016
    Contributor
    More actions

    +1 for unchecked exceptions.
    This was discussed early on by various people which all favored or agreed to it.
    This is also the path that gRPC (grpc-java) is taking.

  5. dimo414 commented on Mar 3, 2016

    @dimo414
    dimo414
    on Mar 3, 2016
    Author
    More actions

    Well if that's the consensus fair enough; personally it's a much more error-prone experience.

    Reacted by Marc McIntyre
  6. dimo414
    closed this as completedon Mar 3, 2016
  7. JustinBeckwith
    assigned
    dimo414
    on Feb 1, 2021
  8. github-actions
    added 7 commits that reference this issue on Jun 21, 2022

    build(deps): update dependency com.google.cloud:google-cloud-shared-c…

    518c462

    deps: update dependency com.google.cloud:google-cloud-shared-dependen…

    77580d0

    build(deps): update dependency com.google.cloud:google-cloud-shared-c…

    a2d8e4c

    feat: Enable REST transport for most of Java and Go clients (googleap…

    b9d3535

    ci: removing clirr from required checks (#703)

    8c27c48

    chore(main): release 2.4.0 (googleapis#710)

    802650e

    chore(main): release 2.2.0 (googleapis#708)

    82c50c6
  9. github-actions
    added a commit that references this issue on Jul 14, 2022

    build(deps): update dependency com.google.cloud:google-cloud-shared-c…

    d8f0010
  10. 12 remaining items

  11. github-actions
    added 2 commits that reference this issue on Oct 4, 2022

    chore(main): release 0.9.5 (#720)

    8d2a642

    chore(main): release 2.6.5 (#712)

    ce2b1bf
  12. suztomo
    added 2 commits that reference this issue on Feb 1, 2023

    deps: update dependency com.google.protobuf:protobuf-bom to v3.21.0 (#…

    62dcccd

    chore(main): release 2.0.0 (#739)

    ea9f421
  13. chingor13
    added a commit that references this issue on Jan 6, 2026

    ci: pull request template includes sample format (#1357) (#703)

    c2c0922
  14. chingor13
    added a commit that references this issue on Jan 22, 2026

    chore(main): release 2.3.1 (#703)

    e3363f7
  15. suztomo
    added a commit that references this issue on Mar 23, 2026

    chore(deps): update dependency com.google.cloud:libraries-bom to v24.…

    ac5d218
  16. suztomo
    added 2 commits that reference this issue on Mar 30, 2026

    deps: update dependency com.google.cloud:google-cloud-storage to v2.1…

    3c712fd

    chore: release 0.123.11 (#702)

    361daa2
  17. lqiu96
    added 2 commits that reference this issue on Apr 1, 2026

    deps: update dependency com.google.cloud:google-cloud-storage to v2.1…

    12ca434

    chore: release 0.123.11 (#702)

    e542f3a
  18. meltsufin
    added 2 commits that reference this issue on Apr 29, 2026

    chore: regenerate README (#703)

    c76cd3b

    chore: regenerate README (#703)

    e7e9eb9
  19. benjaminp
    added 2 commits that reference this issue on Jul 13, 2026

    deps: update autovalue.version to v1.8 (googleapis#703)

    0745ba3

    chore: release 1.22.0 (googleapis#701)

    eb9b27f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dimo414
    dimo414

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.