Skip to content

Exception handling #5

Open
Open
@sp0rk

Description

@sp0rk

e.printStackTrace() is not a proper way to handle exceptions. You can get errors because of something you haven't anticipated or hardware malfunction. Try your best to always come up with a way of properly handling exceptions. If you are 100% certain an exception is not possible to be thrown, write a comment explaining why inside of the catch block.
At least that's what I've heard as a conventional way of doing this stuff.

Metadata

Metadata

Assignees

No one assigned

    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