CLASSIFICATIONDEF_PARENTS_ENTITYTYPES_DISJOINT(400,"ATLAS-400-00-053","ClassificationDef ‘{0}‘ has supertypes whose entityTypes are disjoint; e.g. 2 supertypes that are not related by inheritance specify different non empty entityType lists. This means the child cannot honour the restrictions specified in both parents."),
CLASSIFICATIONDEF_PARENTS_ENTITYTYPES_DISJOINT(400,"ATLAS-400-00-053","ClassificationDef ‘{0}‘ has supertypes whose entityTypes are disjoint; e.g. 2 supertypes that are not related by inheritance specify different non empty entityType lists. This means the child cannot honour the restrictions specified in both parents."),
CLASSIFICATIONDEF_ENTITYTYPES_NOT_PARENTS_SUBSET(400,"ATLAS-400-00-054","ClassificationDef ‘{0}‘ has entityTypes ‘{1}‘ which are not subsets of it's supertypes entityTypes"),
CLASSIFICATIONDEF_ENTITYTYPES_NOT_PARENTS_SUBSET(400,"ATLAS-400-00-054","ClassificationDef ‘{0}‘ has entityTypes ‘{1}‘ which are not subsets of it's supertypes entityTypes"),
INVALID_ENTITY_FOR_CLASSIFICATION(400,"ATLAS-400-00-055","Entity (guid=‘{0}‘,typename=‘{1}‘) cannot be classified by Classification ‘{2}‘, because ‘{1}‘ is not in the ClassificationDef's restrictions."),
INVALID_ENTITY_FOR_CLASSIFICATION(400,"ATLAS-400-00-055","Entity (guid=‘{0}‘,typename=‘{1}‘) cannot be classified by Classification ‘{2}‘, because ‘{1}‘ is not in the ClassificationDef's restrictions."),
SAVED_SEARCH_CHANGE_USER(400,"ATLAS-400-00-056","saved-search {0} can not be moved from user {1} to {2}"),
// All Not found enums go here
// All Not found enums go here
TYPE_NAME_NOT_FOUND(404,"ATLAS-404-00-001","Given typename {0} was invalid"),
TYPE_NAME_NOT_FOUND(404,"ATLAS-404-00-001","Given typename {0} was invalid"),
...
@@ -122,6 +123,7 @@ public enum AtlasErrorCode {
...
@@ -122,6 +123,7 @@ public enum AtlasErrorCode {
INSTANCE_ALREADY_EXISTS(409,"ATLAS-409-00-003","failed to update entity: {0}"),
INSTANCE_ALREADY_EXISTS(409,"ATLAS-409-00-003","failed to update entity: {0}"),
RELATIONSHIP_ALREADY_EXISTS(409,"ATLAS-409-00-004","relationship {0} already exists between entities {1} and {2}"),
RELATIONSHIP_ALREADY_EXISTS(409,"ATLAS-409-00-004","relationship {0} already exists between entities {1} and {2}"),
TYPE_HAS_RELATIONSHIPS(409,"ATLAS-409-00-005","Given type {0} has associated relationshipDefs"),
TYPE_HAS_RELATIONSHIPS(409,"ATLAS-409-00-005","Given type {0} has associated relationshipDefs"),
SAVED_SEARCH_ALREADY_EXISTS(409,"ATLAS-409-00-006","search named {0} already exists for user {1}"),
// All internal errors go here
// All internal errors go here
INTERNAL_ERROR(500,"ATLAS-500-00-001","Internal server error {0}"),
INTERNAL_ERROR(500,"ATLAS-500-00-001","Internal server error {0}"),