Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Add ability to get default health check registry without an exception #1152
Currently, there exists only one method for getting the default health
Currently, there exists only one method for getting the default health check registry - `getDefault`. Unfortunately, it throws an `IllegalStateException` if the registry is not set. End users need to check for this condition. Some users would like avoid using exceptions for the control flow and would prefer to make a null check instead catching an exception. For them we provide the `tryGetDefault` method which does exactly that.