Record Class ValidationError
java.lang.Object
java.lang.Record
io.github.jspinak.brobot.json.schemaValidation.model.ValidationError
public record ValidationError(String errorCode, String message, ValidationSeverity severity)
extends Record
Represents an error found during configuration validation.
-
Constructor Summary
ConstructorsConstructorDescriptionValidationError(String errorCode, String message, ValidationSeverity severity) Creates an instance of aValidationErrorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.Returns the value of theerrorCoderecord component.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.severity()Returns the value of theseverityrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
ValidationError
Creates an instance of aValidationErrorrecord class.- Parameters:
errorCode- the value for theerrorCoderecord componentmessage- the value for themessagerecord componentseverity- the value for theseverityrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
errorCode
Returns the value of theerrorCoderecord component.- Returns:
- the value of the
errorCoderecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
severity
Returns the value of theseverityrecord component.- Returns:
- the value of the
severityrecord component
-