Skip to content
This repository was archived by the owner on Mar 17, 2019. It is now read-only.
This repository was archived by the owner on Mar 17, 2019. It is now read-only.

The right thing to do when you catch an exception is never to throw an exception #40

@jaypoulz

Description

@jaypoulz

There are a few places in @jdaigneau's API wrapper where a catch block throws the exception it catches. The technical term for this is wack.

You should either:

  1. not catch the exception (and allow the calling functions to catch them)
  2. handle the exception gracefully (this could mean notifying the user about what went wrong, logging events, restarting a service, etc.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions