Class OperationFault
- java.lang.Object
-
- com.feedzai.commons.sql.abstraction.engine.handler.OperationFault
-
- All Implemented Interfaces:
Serializable
public class OperationFault extends Object implements Serializable
Enumeration for failed operations in the engine.- Since:
- 2.0.0
- Author:
- Rui Vilao (rui.vilao@feedzai.com)
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOperationFault.TypeThe type of fault detected in the operation.
-
Constructor Summary
Constructors Constructor Description OperationFault(String entity, OperationFault.Type type)Creates a new instance ofOperationFault.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetEntity()Gets the entity name.OperationFault.TypegetType()Gets the fault type.
-
-
-
Constructor Detail
-
OperationFault
public OperationFault(String entity, OperationFault.Type type)
Creates a new instance ofOperationFault.- Parameters:
entity- The entity name.type- The type of fault originated by the operation.
-
-
Method Detail
-
getEntity
public String getEntity()
Gets the entity name.- Returns:
- The entity name.
-
getType
public OperationFault.Type getType()
Gets the fault type.- Returns:
- the fault type.
-
-