#define OK "PAL_NO_ERROR"
#define KO "PAL_NOT_DONE_ERROR"
+#define NOT_FOUND_ANY "NOT_FOUND_ANY"
#define ALREADY_PRESENT "PAL_ELEMENT_ALREADY_PRESENT"
#define NOT_EXISTS "PAL_ELEMENT_DOES_NOT_EXISTS"
#define INVALID_TYPE "INVALID_TYPE_OF_ELEMENT"
}
if (listShape.IsEmpty()) {
- SetErrorCode("The given shape has no sub-shapes of the requested type");
+ //SetErrorCode("The given shape has no sub-shapes of the requested type");
+ SetErrorCode(NOT_FOUND_ANY); // NPAL18017
return aSeq;
}
//=============================================================================
/*!
- * GetSubShapeAllIDs
+ * SubShapeAllIDs
*/
//=============================================================================
Handle(TColStd_HSequenceOfInteger) GEOMImpl_IShapesOperations::SubShapeAllIDs
}
if (listShape.IsEmpty()) {
- SetErrorCode("The given shape has no sub-shapes of the requested type");
+ //SetErrorCode("The given shape has no sub-shapes of the requested type");
+ SetErrorCode(NOT_FOUND_ANY); // NPAL18017
return aSeq;
}
const TopTools_ListOfShape& listSS = aFinder.Shapes(); // the result
if (listSS.Extent() < 1) {
- SetErrorCode("Not a single sub-shape of the requested type found on the given surface");
+ //SetErrorCode("Not a single sub-shape of the requested type found on the given surface");
+ SetErrorCode(NOT_FOUND_ANY); // NPAL18017
return aSeqOfIDs;
}
const TopTools_ListOfShape& listSS = aFinder.Shapes(); // the result
if (listSS.Extent() < 1) {
- SetErrorCode("Not a single sub-shape of the requested type found on the given surface");
+ //SetErrorCode("Not a single sub-shape of the requested type found on the given surface");
+ SetErrorCode(NOT_FOUND_ANY); // NPAL18017
return aSeqOfIDs;
}
const TopTools_ListOfShape& listSS = aFinder.Shapes(); // the result
if (listSS.Extent() < 1) {
- SetErrorCode("Not a single sub-shape of the requested type found on the given surface");
+ //SetErrorCode("Not a single sub-shape of the requested type found on the given surface");
+ SetErrorCode(NOT_FOUND_ANY); // NPAL18017
return aSeqOfIDs;
}
# Raise an Error if Operation is Failed
# -----------------------------------------------------------------------------
def RaiseIfFailed (method_name, operation):
- if operation.IsDone() == 0:
+ #NPAL18017#if operation.IsDone() == 0:
+ if operation.IsDone() == 0 and operation.GetErrorCode() != "NOT_FOUND_ANY":
raise RuntimeError, method_name + " : " + operation.GetErrorCode()
# -----------------------------------------------------------------------------