Class ModelError

java.lang.Object
org.tentackle.model.ModelError

public class ModelError extends Object
Describes a model error.
Author:
harald
  • Constructor Details

    • ModelError

      public ModelError(ModelElement element, String message)
      Creates a model error.
      Parameters:
      element - the related element
      message - the error message
  • Method Details

    • toString

      public static String toString(Collection<ModelError> errors)
      Creates a string from a collection of errors.
      Multiple errors are separated by a newline.
      Parameters:
      errors - the errors
      Returns:
      the error string
    • getElement

      public ModelElement getElement()
      Gets the related element.
      Returns:
      the model element
    • getMessage

      public String getMessage()
      Gets the error message.
      Returns:
      the error
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object