- logger.log writes error messages, warning messages, and info messages to a file so that they can persist and be analyzed later.
- The line comes from ConditionEvaluator when a condition that was supposed to be disabled was not
- Assertions.assertsThrows asserts that the tested method throws an exception
-
- serialVersionUID is an identifier that is used to serialize or deserialize the object. we need this so that the object can be stored/written.
- Constructors cannot be overwritten, but we need to implement these constructors so that the exception will have the correct message
- We do not need to override the other exception methods because it has all the methods provided by Throwable available to it
- Static blocks are run when the class gets loaded, so it sets up the LogManager when the app is started.
- README.md is a Markdown file that BitBucket displays on the repository's source page.
- The test fails because a NullPointerException is thrown rather than a TimerException. The variable timeNow is initialized as null, but when timeToWait is a negative value timeNow is never updated. So when System.currentTimeMillis() - timeNow is executed it throws a NullPointerException
- The time for calling time me is not matching the values that it should be. If the time to wait is negative, a TimerException is thrown. If an InterruptedException is caught then the logger logs a severe error. Regardless of which exceptions are thrown, the code inside the finally block is excecuted.
- TimerException is a RuntimeException. NullPointerException is also a RuntimeException
-
Notifications
You must be signed in to change notification settings - Fork 0
austinlehman/exceptionrunner
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published