Class InjectionExceptions

java.lang.Object
io.helidon.inject.runtime.InjectionExceptions

public final class InjectionExceptions extends Object
Utility for exceptions with information about debugging.
  • 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

      public static String toErrorMessage(String msg)
      Convenience method for producing an error message that may involve advising the user to apply a debug mode. Use toErrorMessage(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: