Class OperationAlreadyInClassException

  • All Implemented Interfaces:
    DataClaySerializable, Serializable

    public final class OperationAlreadyInClassException
    extends DataClayException
    This class represents the exceptions produced in ClassManager module when you try to add a new Operation to a class which already has it in the database.
    Version:
    0.1
    See Also:
    Serialized Form
    • Constructor Detail

      • OperationAlreadyInClassException

        public OperationAlreadyInClassException​(String operation,
                                                NamespaceID originalNamespaceID,
                                                MetaClassID metaClassID)
        This exception is produced when you try to add a new Operation to a class which already has it in the database.
        Parameters:
        operation - Name of the operation
        originalNamespaceID - ID of the namespace of the operation
        metaClassID - ID of the Metaclass that already contains the operation.
    • Method Detail

      • getOriginalNamespaceIDofOperation

        public NamespaceID getOriginalNamespaceIDofOperation()
        Get the ID of the namespace of the operation
        Returns:
        ID of the namespace of the operation
      • getMetaClassIDofOperation

        public MetaClassID getMetaClassIDofOperation()
        Get the ID of the metaclass of the operation
        Returns:
        ID of the metaclass of the operation