Class HomeHealthCheckMessageFactory
java.lang.Object
com.atlassian.confluence.impl.health.checks.HomeHealthCheckMessageFactory
Creates human readable messages from a given
HomeHealthCheckFailure
.
Used for clear and helpful error messaging in HomeHealthCheck
- Since:
- 6.6.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NonNull HealthCheckMessage
getMessage
(HomeHealthCheckFailure failure) Formats aHomeHealthCheckFailure
to a readable helpful message used inHomeHealthCheck
-
Constructor Details
-
HomeHealthCheckMessageFactory
public HomeHealthCheckMessageFactory()
-
-
Method Details
-
getMessage
Formats aHomeHealthCheckFailure
to a readable helpful message used inHomeHealthCheck
- Parameters:
failure
- reason why the Confluence home check failed.- Returns:
- a formatted
HealthCheckMessage
containing a headline and a message to communicate what failed during the home check.
-