Class UCommonErrorMessages

java.lang.Object
ushiosan.jvm.error.UCommonErrorMessages

public abstract class UCommonErrorMessages extends Object
  • Method Details

    • requireNotNullError

      public static String requireNotNullError(@Nullable @Nullable String parameter)
      Generates a formatted error message when a value is null
      Parameters:
      parameter - name of the parameter you want to check
      Returns:
      formatted error message
    • resourceTypeError

      public static String resourceTypeError(@NotNull @NotNull String expected, @NotNull @NotNull String actual)
      Generates a formatted error message for resources with invalid types
      Parameters:
      expected - expected resource type
      actual - the type of data received
      Returns:
      formatted error message
    • schemeNotSupportedError

      public static String schemeNotSupportedError(@NotNull @NotNull String scheme)
      Generates a formatted error message when a scheme is not valid or is not supported by the current element
      Parameters:
      scheme - the unsupported scheme
      Returns:
      formatted error message
    • propertyNotFoundError

      public static String propertyNotFoundError(@Nullable @Nullable String property)
      Generates a formatted error message when the property was not found
      Parameters:
      property - the name of the property that was not found
      Returns:
      formatted error message