java.lang.Object
ushiosan.jvm.error.UCommonErrorMessages
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringpropertyNotFoundError(@Nullable String property) Generates a formatted error message when the property was not foundstatic StringrequireNotNullError(@Nullable String parameter) Generates a formatted error message when a value is nullstatic StringresourceTypeError(@NotNull String expected, @NotNull String actual) Generates a formatted error message for resources with invalid typesstatic StringschemeNotSupportedError(@NotNull String scheme) Generates a formatted error message when a scheme is not valid or is not supported by the current element
-
Method Details
-
requireNotNullError
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 typeactual- the type of data received- Returns:
- formatted error message
-
schemeNotSupportedError
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
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
-