Skip to content

Commit

Permalink
Update to throwable usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomas-langer committed Dec 9, 2018
1 parent 0f70795 commit 47ef155
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion DEV-GUIDELINES.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ reviewing changes done by others.

# General coding rules
1. Use unchecked Throwables - descendants of RuntimeException in API
1. our API should never throw a checked exception unless enforced by implemented interface
1. Never use RuntimeException directly - always create a descendant appropriate for your module, or
use an existing exception declared in the module
1. Our APIs should never throw a checked exception unless enforced by implemented/extended interface - e.g. when
we implement a java.io.Closeable, we must declare the checked exception.

# Package and module structure
1. We use flat package structure
Expand Down

0 comments on commit 47ef155

Please sign in to comment.