Class OperationAlreadyInClassException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- es.bsc.dataclay.exceptions.DataClayException
-
- es.bsc.dataclay.exceptions.logicmodule.classmgr.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 Summary
Constructors Constructor Description 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MetaClassIDgetMetaClassIDofOperation()Get the ID of the metaclass of the operationNamespaceIDgetOriginalNamespaceIDofOperation()Get the ID of the namespace of the operation-
Methods inherited from class es.bsc.dataclay.exceptions.DataClayException
asGrpcException, deserialize, equals, getErrorcode, getLocalizedMessage, hashCode, printStackTrace, serialize, setErrorCode, setExceptionMessage
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
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 operationoriginalNamespaceID- ID of the namespace of the operationmetaClassID- 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
-
-