java.lang.Object
org.tentackle.model.ModelError
Describes a model error.
- Author:
- harald
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the related element.Gets the error message.inthashCode()toString()static StringtoString(Collection<ModelError> errors) Creates a string from a collection of errors.
Multiple errors are separated by a newline.
-
Constructor Details
-
ModelError
Creates a model error.- Parameters:
element- the related elementmessage- the error message
-
-
Method Details
-
toString
Creates a string from a collection of errors.
Multiple errors are separated by a newline.- Parameters:
errors- the errors- Returns:
- the error string
-
getElement
Gets the related element.- Returns:
- the model element
-
getMessage
Gets the error message.- Returns:
- the error
-
toString
-
hashCode
public int hashCode() -
equals
-