Class ReadOnlyElementException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.nomagic.magicdraw.openapi.uml.ReadOnlyElementException
All Implemented Interfaces:
Serializable

@OpenApiAll public class ReadOnlyElementException extends Exception
The exception is thrown if user wants to edit not editable(readonly) ModelElement.
See Also:
  • Constructor Details

    • ReadOnlyElementException

      public ReadOnlyElementException(@CheckForNull BaseElement element)
      Constructs new exception for given read only(not editable) Element.
      Parameters:
      element - the read only Element.
  • Method Details

    • getElement

      public BaseElement getElement()
      Returns a read only(not editable) element of this exception.
      Returns:
      read only element.