Class ReadOnlyElementException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.nomagic.magicdraw.openapi.uml.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.
-
Constructor Summary
Constructors Constructor Description ReadOnlyElementException(BaseElement element)
Constructs new exception for given read only(not editable) 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.
-
-
-
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.
-
-