Class DtoDuplicateIdError
java.lang.Object
com.vernaio.kayros.engine.v2.exception.dto.DtoDuplicateIdError
- All Implemented Interfaces:
IDtoAbstractError,IDtoDuplicateIdError
There are multiple {refType} with id {id} in {paths}.
-
Field Summary
Fields inherited from interface com.vernaio.kayros.engine.v2.exception.dto.IDtoDuplicateIdError
_DISCRIMINATOR_TYPE_NAME -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDtoDuplicateIdError(String message, String id, String refType, String[] paths) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetId()The id (or other kind of reference) that is assigned to multiple objects of the same type.String[]getPaths()The paths where the objects are defined.The type of the referenced object.getType()Type of this object.inthashCode()voidThe id (or other kind of reference) that is assigned to multiple objects of the same type.voidsetMessage(String message) voidThe paths where the objects are defined.voidsetRefType(String refType) The type of the referenced object.The id (or other kind of reference) that is assigned to multiple objects of the same type.withMessage(String message) The paths where the objects are defined.withRefType(String refType) The type of the referenced object.
-
Constructor Details
-
DtoDuplicateIdError
protected DtoDuplicateIdError() -
DtoDuplicateIdError
-
-
Method Details
-
getType
Type of this object.- Specified by:
getTypein interfaceIDtoAbstractError- Specified by:
getTypein interfaceIDtoDuplicateIdError
-
getMessage
- Specified by:
getMessagein interfaceIDtoAbstractError- Specified by:
getMessagein interfaceIDtoDuplicateIdError
-
setMessage
- Specified by:
setMessagein interfaceIDtoAbstractError- Specified by:
setMessagein interfaceIDtoDuplicateIdError
-
getId
The id (or other kind of reference) that is assigned to multiple objects of the same type.- Specified by:
getIdin interfaceIDtoDuplicateIdError
-
setId
The id (or other kind of reference) that is assigned to multiple objects of the same type.- Specified by:
setIdin interfaceIDtoDuplicateIdError
-
getRefType
The type of the referenced object.- Specified by:
getRefTypein interfaceIDtoDuplicateIdError
-
setRefType
The type of the referenced object.- Specified by:
setRefTypein interfaceIDtoDuplicateIdError
-
getPaths
The paths where the objects are defined.- Specified by:
getPathsin interfaceIDtoDuplicateIdError
-
setPaths
The paths where the objects are defined.- Specified by:
setPathsin interfaceIDtoDuplicateIdError
-
equals
-
hashCode
public int hashCode() -
withMessage
-
withId
The id (or other kind of reference) that is assigned to multiple objects of the same type. -
withRefType
The type of the referenced object. -
withPaths
The paths where the objects are defined.
-