| 1 | class InvalidDurationException extends Exception { |
| 2 | InvalidDurationException(String message) { |
| 3 | super(message); |
| 4 | } |
| 5 | } |
| 6 | |
| 7 | class ExceptionsDemo { |
| 8 | static double calculateWpm(int words, int seconds) throws InvalidDurationException { |
nothing calls this directly
no outgoing calls
no test coverage detected