Class BindingError
java.lang.Object
tech.guilhermekaua.spigotboot.config.binding.BindingError
Represents an error that occurred during config binding.
-
Constructor Summary
ConstructorsConstructorDescriptionBindingError(@NotNull PropertyPath path, @NotNull String field, @NotNull String message, @Nullable Throwable cause) Creates a new binding error. -
Method Summary
Modifier and TypeMethodDescription@NotNull Stringformat()Formats this error for display.@Nullable ThrowablegetCause()Gets the underlying cause.@NotNull StringgetField()Gets the field name.@NotNull StringGets the error message.@NotNull PropertyPathgetPath()Gets the config path.toString()
-
Constructor Details
-
BindingError
public BindingError(@NotNull @NotNull PropertyPath path, @NotNull @NotNull String field, @NotNull @NotNull String message, @Nullable @Nullable Throwable cause) Creates a new binding error.- Parameters:
path- the config path where the error occurredfield- the field namemessage- the error messagecause- the underlying cause, or null
-
-
Method Details
-
getPath
Gets the config path.- Returns:
- the path
-
getField
Gets the field name.- Returns:
- the field name
-
getMessage
Gets the error message.- Returns:
- the message
-
getCause
Gets the underlying cause.- Returns:
- the cause, or null
-
format
Formats this error for display.- Returns:
- the formatted error
-
toString
-