Class ModelError


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

      • ModelError

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

      • 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object