public class ModelError extends Object
| Constructor and Description |
|---|
ModelError(ModelElement element,
String message)
Creates a model error.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
ModelElement |
getElement()
Gets the related element.
|
String |
getMessage()
Gets the error message.
|
int |
hashCode() |
String |
toString() |
static String |
toString(Collection<ModelError> errors)
Creates a string from a collection of errors.
Multiple errors are separated by a newline. |
public ModelError(ModelElement element, String message)
element - the related elementmessage - the error messagepublic static String toString(Collection<ModelError> errors)
errors - the errorspublic ModelElement getElement()
public String getMessage()
Tentackle - a domain driven enterprise framework