Class ReadOnlyElementException

  • All Implemented Interfaces:
    java.io.Serializable

    @OpenApiAll
    public class ReadOnlyElementException
    extends java.lang.Exception
    The exception is thrown if user wants to edit not editable(readonly) ModelElement.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private BaseElement mElement
      The read only element.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      BaseElement getElement()
      Returns a read only(not editable) element of this exception.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • mElement

        private final BaseElement mElement
        The read only element.
    • Constructor Detail

      • ReadOnlyElementException

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

      • getElement

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