java.lang.Object
io.helidon.inject.runtime.InjectionExceptions
Utility for exceptions with information about debugging.
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
toErrorMessage
(io.helidon.inject.api.CallingContext callingContext, String msg) Convenience method for producing an error message that may involve advising the user to apply a debug mode.static String
toErrorMessage
(String msg) Convenience method for producing an error message that may involve advising the user to apply a debug mode.
-
Method Details
-
toErrorMessage
public static String toErrorMessage(io.helidon.inject.api.CallingContext callingContext, String msg) Convenience method for producing an error message that may involve advising the user to apply a debug mode.- Parameters:
callingContext
- the calling context (caller can be using a custom calling context, which is why we accept it here instead of using the global one)msg
- the base message to display- Returns:
- the message appropriate for any exception being thrown
-
toErrorMessage
Convenience method for producing an error message that may involve advising the user to apply a debug mode. UsetoErrorMessage(CallingContext, String)
instead f a calling context is available.- Parameters:
msg
- the base message to display- Returns:
- the message appropriate for any exception being thrown
- See Also:
-