diff --git a/In18Resources/bff_engine_exception.properties b/In18Resources/bff_engine_exception.properties index 3ceed0c635d323d8b28759f9c2c45ca46d618b0e..108057d3d7447f6e72162be878da0008adbcbd06 100644 --- a/In18Resources/bff_engine_exception.properties +++ b/In18Resources/bff_engine_exception.properties @@ -1,50 +1,55 @@ -BFF_ENGINE_0001=模型[{0}]的节点[{1}]上设置的排序字段[{2}]不存在,请重新设置排序字段. -BFF_ENGINE_0002=节点[{0}]定义的排序条件格式不正确,请检查. -BFF_ENGINE_0003=未找到ID为:[{0}],名称为:[{1}]的udt元数据,请确认该元数据是否已经部署入库. -BFF_ENGINE_0004=没有找到字段[{0}]的映射字段. -BFF_ENGINE_0005=Vo[{0}]编译失败,多值UDT[{1}]数据库映射有异常. -BFF_ENGINE_0006=字段[{0}]对应的be字段没有获取到[{1}]. -BFF_ENGINE_0007=[{0}]中,关联字段[{1}]的关联带出字段[{2}]对应的be带出字段不存在. -BFF_ENGINE_0008=字段[{0}]上没有记录映射对象Id,请打开vo设计器重新添加字段. -BFF_ENGINE_0009=be元数据[{0}]上没有找到对象[{1}],对应vo对象为[{2}]. -BFF_ENGINE_0010=节点[{0}]定义的排序条件格式不正确,请检查. -BFF_ENGINE_1001=扩展方法[{0}]实例化失败. -BFF_ENGINE_1002=找不到节点,节点编号:[{0}]. -BFF_ENGINE_1003=未找到构件元数据[{0}],元数据id为[{1}]. -BFF_ENGINE_1004=String[]类型反序列化失败,值为:[{0}]. -BFF_ENGINE_1005=ArrayList类型反序列化失败,值为:[{0}]. -BFF_ENGINE_1006=动作参数[{0}]的类名为空. -BFF_ENGINE_1007=类型加载失败:[{0}]. -BFF_ENGINE_1008=类型反序列化失败:[{0}]. -BFF_ENGINE_1009=时间解析失败:[{0}]. -BFF_ENGINE_1010=无法识别的关联类型. -BFF_ENGINE_1011=字段[{0}]的关联值克隆失败. -BFF_ENGINE_1012=节点[{0}]对应的be节点没有找到,be节点Id为[{1}]. -BFF_ENGINE_1013=ID为:[{0}],名称为:[{1}]的Vo元数据上不存在帮助编号为:[{2}]的帮助配置节点. -BFF_ENGINE_1014=VO元数据上[{0}]不存在帮助编号为:[{1}]的节点. -BFF_ENGINE_1015=在编号为[{0}],名称为[{1}],ID为[{2}]的vo元数据上,未获取到编号为[{3}]的实体对象. -BFF_ENGINE_1016=编号为[{0}],名称为[{1}],ID为[{2}]的帮助元数据上记录的VoSourceId为空. -BFF_ENGINE_1017=不存在的帮助级联类型[{0}]. -BFF_ENGINE_1018=视图对象[{0}]中没有找到自定义动作{1}. -BFF_ENGINE_1019=暂不支持类型为[{0}]的动作{1}. -BFF_ENGINE_1020=data序列化报错. -BFF_ENGINE_1021=responseInfo序列化报错. -BFF_ENGINE_1022=ID为[{0}]编号为[{1}]名称为[{2}]的业务实体所属业务对象[{3}]不存在. -BFF_ENGINE_1023=未找到ID为:[{0}],名称为:[{1}]的udt元数据,请确认该元数据是否已经部署入库. -BFF_ENGINE_1024=Vo[{0}]编译失败,多值UDT[{1}]数据库映射有异常. -BFF_ENGINE_1025=[{0}]中,关联字段[{1}]的关联带出字段[{2}]对应的be带出字段不存在. -BFF_ENGINE_1026=字段[{0}]对应的be字段没有获取到. -BFF_ENGINE_1027=字段[{0}]上没有记录映射对象Id,请打开vo设计器重新添加字段. -BFF_ENGINE_1028=be元数据[{0}]上没有找到对象[{1}],对应vo对象为[{2}]. -BFF_ENGINE_1029=字段[{0}]是关联字段,但缺少关联关系. -BFF_ENGINE_1030=关联类型转换时,值[{0}]获取失败. -BFF_ENGINE_1031=关联类型转换失败, 关联类为:[{0}]. -BFF_ENGINE_1032=节点[{0}]对应的be节点没有找到,be节点Id为[{1}]. -BFF_ENGINE_1033=字段[{0}]对应的be字段没有找到,be字段Id为[{1}]. -BFF_ENGINE_1034=元数据id为空. -BFF_ENGINE_1035=找不到vo元数据,可以尝试重新打包部署:[{0}]. -BFF_ENGINE_1036=找不到vo元数据内容,可以尝试重新打包部署:[{0}]. -BFF_ENGINE_1037=后端元数据包部署失败,vo未找到关联be!vo元数据id:[{0}],name:[{1}],code:[{2}],相关联be元数据id:[{3}]. -BFF_ENGINE_1038=找不到帮助元数据,需要将要使用的帮助元数据导入或者部署到数据库,帮助元数据ID为:[{0}]. -BFF_ENGINE_1039=主节点未匹配到ID为:[{0}]业务字段. -BFF_ENGINE_1040=子对象[{0}]未匹配到ID为:[{1}]业务字段. \ No newline at end of file +# bff-engine-api +GSP_BFF_ENGINE_0001=视图对象[{0}]上的对象[{1}]上设置的排序字段[{2}]不存在,请重新设置排序字段。 +GSP_BFF_ENGINE_0002=对象[{0}]定义的排序条件格式不正确,请检查。 +GSP_BFF_ENGINE_0003=业务字段[Name:[{0}]、ID:[{1}]]元数据未获取到,请更新该业务字段元数据。 +GSP_BFF_ENGINE_0004=业务实体[{0}]上未找到字段[{1}]:视图对象[{2}]中对象[{3}]上的字段[{4}]引用了该字段。可能的原因是业务实体修改后未发布或未同步视图对象,请检查。 +GSP_BFF_ENGINE_0005=业务字段[{0}]上未获取到字段[{1}]:业务实体[{2}]中对象[{3}]上的字段[{4}]引用了该字段。可能的原因是业务实体修改后未发布或未同步视图对象,请检查。 +GSP_BFF_ENGINE_0006=业务实体[{0}]上未找到关联引用字段[{1}]:视图对象[{2}]中对象{3}上的关联引用字段[{4}]引用了该字段。可能的原因是业务实体修改后未发布或未同步视图对象,请检查。 +GSP_BFF_ENGINE_0007=业务实体[{0}]上未找到业务字段类型关联引用字段[{1}]:视图对象[{2}]中对象{3}上的业务字段类型关联引用字段[{4}]引用了该字段。可能的原因是业务实体修改后未发布或未同步视图对象,请检查。 +GSP_BFF_ENGINE_0008=视图对象[{0}]字段[{1}]引用的业务实体对象信息为空,请检查。 +GSP_BFF_ENGINE_0009=业务实体[{0}]中未找到对象[{1}];视图对象中对象[{2}]上字段[{3}]引用了该对象。可能的原因是业务实体修改后未发布或未同步视图对象,请检查。 +GSP_BFF_ENGINE_0010=初始化视图对象[{0}]上对象[{1}]的排序条件[{2}]信息时异常,请确认并正确设置视图对象上的排序条件。 +# bff-engine-core +GSP_BFF_ENGINE_1001=视图对象元数据上的视图对象操作或者扩展操作或者业务实体映射操作[{0}]实例化失败。 +GSP_BFF_ENGINE_1002=新增子对象数据时,视图对象[{0}]上未找到编号为[{1}]的对象信息,请检查。 +GSP_BFF_ENGINE_1003=初始化视图对象上的操作[{0}]时,未获取到当前操作对应的构件元数据[ID:{1}]信息,请更新该操作引用的构件元数据。 +GSP_BFF_ENGINE_1004=初始化视图对象操作的文本数组参数[{0}]时发生异常。 +GSP_BFF_ENGINE_1005=初始化视图对象操作的文本列表参数[{0}]时发生异常。 +GSP_BFF_ENGINE_1006=视图对象上的操作参数类型为自定义类型时,参数[{0}]的类名称不能为空,请联系管理员或者开发人员更新视图对象元数据的参数信息。 +GSP_BFF_ENGINE_1007=视图对象上的操作自定义类型的参数[{0}]对应的类[{1}]初始化时,未加载到该类,请联系管理员或者开发人员确认该类是否存在。 +GSP_BFF_ENGINE_1008=视图对象上的操作自定义类型的参数[{0}]对应的类[{1}]序列化时发生异常:{2}。 +GSP_BFF_ENGINE_1009=解析视图对象操作上时间类型参数的值[{0}]时异常:{1}。 +GSP_BFF_ENGINE_1010=关联字段[{0}]设置的值[{1}]类型不对,请重新设置关联字段以及带出字段的值。 +GSP_BFF_ENGINE_1011=视图对象变更集转换为业务实体变更集时,关联字段[{0}]对应的值[{1}]克隆失败。 +GSP_BFF_ENGINE_1012=初始化视图对象上对象[{0}]的变更集转换器时,未获取到当前引用的对象[ID:{1}]信息。可能的原因是业务实体修改后未发布或未同步视图对象,请检查。 +GSP_BFF_ENGINE_1013=视图对象[Name:{0}、Code:{1}、ID:{2}]上不存在[{3}]的帮助配置信息,请重新保存当前视图对象对应的表单更新帮助信息。 +GSP_BFF_ENGINE_1014=视图对象[Name:{0}、Code:{1}、ID:{2}]上未匹配到对象编号[{3}]和帮助字段标签[{4}]对应的帮助配置信息,请重新保存当前视图对象对应的表单更新帮助信息。 +GSP_BFF_ENGINE_1015=解析帮助联动配置信息时,视图对象[{0}]上未匹配到编号为[{1}]的对象,请重新确认配置帮助联动信息。 +GSP_BFF_ENGINE_1016=帮助联动配置的帮助[Name:{0}、Code:{1}、ID:{2}]元数据上记录的视图对象数据源信息VoSourceId为空,请更新后重新发布帮助元数据。 +GSP_BFF_ENGINE_1017=帮助联动配置不支持[{0}]的帮助级联类型。 +GSP_BFF_ENGINE_1018=视图对象[{0}]上不存在编号为[{1}]的操作,请检查。 +GSP_BFF_ENGINE_1019=executeCustomAction方法目前只支持视图对象上[Name:{0}、Code:{1}、ID:{2}]操作类型为BEAction以及VOAction的操作,暂不支持类型为[{3}]的操作[{4}]。 +GSP_BFF_ENGINE_1020=查询数据结果QueryResult实体类序列化异常:{0}。 +GSP_BFF_ENGINE_1021=请求返回结果ResponseInfo实体类序列化异常:{0}。 +GSP_BFF_ENGINE_1022=视图对象[Name:{0}、Code:{1}、ID:{2}]元数据所属的业务对象[{3}]不存在,请检查。 +GSP_BFF_ENGINE_1023=业务字段[Name:{0}、ID:{1}]元数据未获取到,请更新该业务字段元数据。 +GSP_BFF_ENGINE_1024=业务字段[{0}]上未获取到字段[{1}]:业务实体[{2}]中对象[{3}]上的字段[{4}]引用了该字段。可能的原因是业务实体修改后未发布或未同步视图对象,请检查。 +GSP_BFF_ENGINE_1025=业务实体[{0}]上未找到字段[{1}]:视图对象[{2}]中对象[{3}]上的字段[{4}]引用了该字段。可能的原因是业务实体修改后未发布或未同步视图对象,请检查。 +GSP_BFF_ENGINE_1026=业务实体[{0}]上未找到关联引用字段[{1}]:视图对象[{2}]中对象[{3}]上的关联引用字段[{4}]引用了该字段。可能的原因是业务实体修改后未发布或未同步视图对象,请检查。 +GSP_BFF_ENGINE_1027=视图对象[{0}]字段[{1}]引用的业务实体对象信息为空,请检查。 +GSP_BFF_ENGINE_1028=业务实体[{0}]中未找到对象[{1}];视图对象[{2}]中对象[{3}]上字段[{4}]引用了该对象。可能的原因是业务实体修改后未发布或未同步视图对象,请检查。 +GSP_BFF_ENGINE_1029=视图对象[{0}]上对象[{1}]的字段[{2}]是关联类型的字段,但是没有设置关联引用字段,请重新设置关联。 +GSP_BFF_ENGINE_1030=反射调用[{0}]上的getValue方法获取对象[{1}]上关联带出字段[{2}]对应的值时发生异常:{3}。 +GSP_BFF_ENGINE_1031=反射调用[{0}]上的getValue方法获取对象[{1}]上字段[{2}]对应的值时发生异常:{3}。 +GSP_BFF_ENGINE_1032=视图对象[{0}]中对象[{1}]记录的业务实体对象[ID:{2}]信息,在业务实体对象[Name:{3}、Code:{4}]不存在。可能的原因是业务实体修改后未发布或未同步视图对象,请检查。 +GSP_BFF_ENGINE_1033=视图对象[{0}]上对象[{1}]上字段[{2}]引用的的业务实体字段[{3}]在业务实体[{4}]的对象[{5}]上不存在。可能的原因是业务实体修改后未发布或未同步视图对象,请检查。 +GSP_BFF_ENGINE_1034=初始化视图对象服务接口时,传入的参数[metadataId]不能为空,请检查。 +GSP_BFF_ENGINE_1035=初始化视图对象[ID:{0}]服务接口时,未获取到元数据信息,请联系管理员或者开发人员更新该元数据。 +GSP_BFF_ENGINE_1036=初始化视图对象[ID:{0}]服务接口时,未获取到该元数据信息的Content内容,请检查。 +GSP_BFF_ENGINE_1037=初始化视图对象[{0}]和视图对象记录的业务实体信息时,未获取到当前视图对象记录的ID为[{1}]业务实体元数据,请联系管理员或者开发人员更新业务实体元数据。 +GSP_BFF_ENGINE_1038=视图对象[{0}]上解析帮助配置[{1}]时,未获取到ID为[{2}]帮助元数据,请联系管理员或者开发人员更新该帮助元数据。 +GSP_BFF_ENGINE_1039=视图对象[{0}]的对象[{1}]上未找到元数据ID为:[{2}]的业务字段元数据,请检查。 +GSP_BFF_ENGINE_1040=视图对象[{0}]上未获取到到编号为:[{1}]的对象,请检查。 +GSP_BFF_ENGINE_1041=业务实体[{0}]中对象[{1}]上字段[{2}]引用的业务字段[{3}]元数据上的字段[{4}]未获取到,请重新选择业务字段更新业务实体信息。 +GSP_BFF_ENGINE_1042=视图对象[Name:{0}、Code:{1}、ID:{2}]上不存在编号为[{3}]的视图对象操作,请检查元数据。 +GSP_BFF_ENGINE_2001=根据对象数据获取对象实际编号时,传入的类型为[{0}]的对象数据暂不支持。 \ No newline at end of file diff --git a/In18Resources/en/bff_engine_exception.en.properties b/In18Resources/en/bff_engine_exception.en.properties index 85a2306fa4307323482d6aa42c02f78d02c19563..e917d0119d342dadd1aefca6640a314dbe66dc8a 100644 --- a/In18Resources/en/bff_engine_exception.en.properties +++ b/In18Resources/en/bff_engine_exception.en.properties @@ -1,50 +1,55 @@ -BFF_ENGINE_0001=The sorting field [{2}] set on the node [{1}] of model [{0}] does not exist. Please set a valid sorting field. -BFF_ENGINE_0002=The sorting condition defined on node [{0}] is not in the correct format. Please check. -BFF_ENGINE_0003=UDT metadata with ID [{0}] and name [{1}] is not found. Please make sure the metadata has been deployed to the database. -BFF_ENGINE_0004=No mapping field found for field [{0}]. -BFF_ENGINE_0005=Vo [{0}] compilation failed, multiple-value UDT [{1}] has database mapping exceptions. -BFF_ENGINE_0006=The BE field corresponding to field [{0}] did not retrieve [{1}]. -BFF_ENGINE_0007=In [{0}], the associated out field [{2}] of the associated field [{1}] does not exist in the BE out field. -BFF_ENGINE_0008=No mapping object ID recorded on field [{0}]. Please open the VO designer and add the field again. -BFF_ENGINE_0009=The object [{1}] is not found in BE metadata [{0}]. The corresponding VO object is [{2}]. -BFF_ENGINE_0010=The sorting condition defined on node [{0}] is not in the correct format. Please check. -BFF_ENGINE_1001=Failed to instantiate the extension method [{0}]. -BFF_ENGINE_1002=Node with node code [{0}] is not found. -BFF_ENGINE_1003=Construction metadata [{0}] with metadata ID [{1}] is not found. -BFF_ENGINE_1004=Failed to deserialize String[] type with value [{0}]. -BFF_ENGINE_1005=Failed to deserialize ArrayList type with value [{0}]. -BFF_ENGINE_1006=Class name is empty for action parameter [{0}]. -BFF_ENGINE_1007=Type loading failed: [{0}]. -BFF_ENGINE_1008=Type deserialization failed: [{0}]. -BFF_ENGINE_1009=Time parsing failed: [{0}]. -BFF_ENGINE_1010=Unrecognized association type. -BFF_ENGINE_1011=Cloning of the associated value of field [{0}] failed. -BFF_ENGINE_1012=The corresponding BE node is not found for node [{0}]. BE node ID is [{1}]. -BFF_ENGINE_1013=No help configuration node with help ID [{2}] is found on Vo metadata with ID [{0}], name [{1}]. -BFF_ENGINE_1014=Help node with help ID [{1}] does not exist on Vo metadata [{0}]. -BFF_ENGINE_1015=No entity object with ID [{3}] is retrieved on Vo metadata with node code [{0}], name [{1}], ID [{2}]. -BFF_ENGINE_1016=VoSourceId is empty in help metadata with node code [{0}], name [{1}], ID [{2}]. -BFF_ENGINE_1017=Unrecognized help cascade type [{0}]. -BFF_ENGINE_1018=No custom action {1} found in view object [{0}]. -BFF_ENGINE_1019=Actions {1} of type [{0}] are not supported at the moment. -BFF_ENGINE_1020=Error occurred during data serialization. -BFF_ENGINE_1021=Error occurred during responseInfo serialization. -BFF_ENGINE_1022=The business object [{3}] to which the business entity with ID [{0}], node code [{1}], and name [{2}] belongs does not exist. -BFF_ENGINE_1023=UDT metadata with ID [{0}] and name [{1}] is not found. Please make sure the metadata has been deployed to the database. -BFF_ENGINE_1024=Vo [{0}] compilation failed, multiple-value UDT [{1}] has database mapping exceptions. -BFF_ENGINE_1025=The BE out field corresponding to the associated out field [{2}] of the associated field [{1}] in [{0}] does not exist. -BFF_ENGINE_1026=No VoSourceId recorded in help metadata with node code [{0}], name [{1}], ID [{2}]. -BFF_ENGINE_1027=No mapping object ID recorded on field [{0}]. Please open the VO designer and add the field again. -BFF_ENGINE_1028=No object [{1}] found in BE metadata [{0}]. The corresponding VO object is [{2}]. -BFF_ENGINE_1029=The field [{0}] is an associated field, but the association is missing. -BFF_ENGINE_1030=Failed to retrieve the value [{0}] during association type conversion. -BFF_ENGINE_1031=Failed to convert association type, association class: [{0}]. -BFF_ENGINE_1032=The corresponding BE node is not found for node [{0}]. BE node ID is [{1}]. -BFF_ENGINE_1033=The corresponding BE field is not found for field [{0}]. BE field ID is [{1}]. -BFF_ENGINE_1034=Metadata ID is empty. -BFF_ENGINE_1035=Cannot find VO metadata, you can try repackaging and redeploying: [{0}]. -BFF_ENGINE_1036=Cannot find VO metadata content, you can try repackaging and redeploying: [{0}]. -BFF_ENGINE_1037=Backend metadata deployment failed, VO not found associated with BE! VO metadata ID: [{0}], name: [{1}], code: [{2}], associated BE metadata ID: [{3}]. -BFF_ENGINE_1038=Cannot find help metadata, please import or deploy the required help metadata to the database. Help metadata ID: [{0}]. -BFF_ENGINE_1039=Main node did not match the business field with ID: [{0}]. -BFF_ENGINE_1040=Sub-object [{0}] did not match the business field with ID: [{1}]. \ No newline at end of file +# bff-engine-api +GSP_BFF_ENGINE_0001=The sorting field [{2}] set on object [{1}] of view object [{0}] does not exist. Please reset the sorting field. +GSP_BFF_ENGINE_0002=The sorting condition format defined for object [{0}] is incorrect. Please check. +GSP_BFF_ENGINE_0003=Metadata for business field [Name: [{0}], ID: [{1}]] could not be retrieved. Please update the metadata for this business field. +GSP_BFF_ENGINE_0004=Field [{1}] not found on business entity [{0}]: Field [{4}] on object [{3}] in view object [{2}] references this field. Possible reasons include the business entity being modified but not published or the view object not being synchronized. Please check. +GSP_BFF_ENGINE_0005=Field [{1}] could not be retrieved for business field [{0}]: Field [{4}] on object [{3}] in business entity [{2}] references this field. Possible reasons include the business entity being modified but not published or the view object not being synchronized. Please check. +GSP_BFF_ENGINE_0006=Associated reference field [{1}] not found on business entity [{0}]: Associated reference field [{4}] on object {3} in view object [{2}] references this field. Possible reasons include the business entity being modified but not published or the view object not being synchronized. Please check. +GSP_BFF_ENGINE_0007=Business field type associated reference field [{1}] not found on business entity [{0}]: Business field type associated reference field [{4}] on object {3} in view object [{2}] references this field. Possible reasons include the business entity being modified but not published or the view object not being synchronized. Please check. +GSP_BFF_ENGINE_0008=The business entity object information referenced by field [{1}] on view object [{0}] is empty. Please check. +GSP_BFF_ENGINE_0009=Object [{1}] not found in business entity [{0}]: Field [{3}] on object [{2}] in the view object references this object. Possible reasons include the business entity being modified but not published or the view object not being synchronized. Please check. +GSP_BFF_ENGINE_0010=An exception occurred while initializing sorting condition [{2}] information for object [{1}] on view object [{0}]. Please confirm and correctly set the sorting conditions on the view object. +# bff-engine-core +GSP_BFF_ENGINE_1001=Failed to instantiate the view object operation, extension operation, or business entity mapping operation [{0}] on view object metadata. +GSP_BFF_ENGINE_1002=When adding child object data, object information with code [{1}] not found on view object [{0}]. Please check. +GSP_BFF_ENGINE_1003=When initializing operation [{0}] on the view object, metadata [ID: {1}] for the corresponding component was not retrieved. Please update the component metadata referenced by this operation. +GSP_BFF_ENGINE_1004=An exception occurred while initializing the text array parameter [{0}] for the view object operation. +GSP_BFF_ENGINE_1005=An exception occurred while initializing the text list parameter [{0}] for the view object operation. +GSP_BFF_ENGINE_1006=When the operation parameter type on the view object is a custom type, the class name for parameter [{0}] cannot be empty. Please contact the administrator or developer to update the parameter information in the view object metadata. +GSP_BFF_ENGINE_1007=When initializing the class [{1}] corresponding to the custom type parameter [{0}] on the view object operation, the class could not be loaded. Please contact the administrator or developer to confirm the existence of this class. +GSP_BFF_ENGINE_1008=An exception occurred during serialization of the class [{1}] corresponding to the custom type parameter [{0}] on the view object operation: {2}. +GSP_BFF_ENGINE_1009=An exception occurred while parsing the value [{0}] of the time type parameter on the view object operation: {1}. +GSP_BFF_ENGINE_1010=The value [{1}] set for associated field [{0}] is of the wrong type. Please reset the value of the associated field and its corresponding output field. +GSP_BFF_ENGINE_1011=When converting the view object changeset to the business entity changeset, the cloning of the value [{1}] corresponding to the associated field [{0}] failed. +GSP_BFF_ENGINE_1012=When initializing the changeset converter for object [{0}] on the view object, the information for the currently referenced object [ID: {1}] was not retrieved. This may be due to the business entity being modified but not published or the view object not being synchronized. Please check. +GSP_BFF_ENGINE_1013=Help configuration information for [{3}] does not exist on the view object [Name: {0}, Code: {1}, ID: {2}]. Please save the updated form help information for the corresponding view object again. +GSP_BFF_ENGINE_1014=No matching help configuration information found for object ID [{3}] and help field label [{4}] on the view object [Name: {0}, Code: {1}, ID: {2}]. Please save the updated form help information for the corresponding view object again. +GSP_BFF_ENGINE_1015=When parsing the help linkage configuration information, no matching object with ID [{1}] found on the view object [{0}]. Please reconfirm the help linkage configuration. +GSP_BFF_ENGINE_1016=The view object data source information VoSourceId recorded in the metadata of help [Name: {0}, Code: {1}, ID: {2}] configured for help linkage is empty. Please update and republish the help metadata. +GSP_BFF_ENGINE_1017=The help cascade type [{0}] is not supported by the help linkage configuration. +GSP_BFF_ENGINE_1018=Operation with ID [{1}] does not exist on the view object [{0}]. Please check. +GSP_BFF_ENGINE_1019=The executeCustomAction method currently only supports operations of type BEAction and VOAction on the view object [Name: {0}, Code: {1}, ID: {2}]. Operations of type [{3}] such as [{4}] are not supported at this time. +GSP_BFF_ENGINE_1020=Serialization exception occurred for QueryResult entity class: {0}. +GSP_BFF_ENGINE_1021=Serialization exception occurred for ResponseInfo entity class: {0}. +GSP_BFF_ENGINE_1022=The business object [{3}] associated with the metadata of the view object [Name: {0}, Code: {1}, ID: {2}] does not exist. Please check. +GSP_BFF_ENGINE_1023=The metadata for the business field [Name: {0}, ID: {1}] could not be retrieved. Please update the metadata for this business field. +GSP_BFF_ENGINE_1024=The field [{1}] on the business field [{0}] could not be found. The field [{4}] on the object [{3}] in the business entity [{2}] references this field. Possible reasons include the business entity being modified without publishing or synchronizing the view object. Please check. +GSP_BFF_ENGINE_1025=The field [{1}] on the business entity [{0}] could not be found. The field [{4}] on the object [{3}] in the view object [{2}] references this field. Possible reasons include the business entity being modified without publishing or synchronizing the view object. Please check. +GSP_BFF_ENGINE_1026=The associated reference field [{1}] on the business entity [{0}] could not be found. The associated reference field [{4}] on the object [{3}] in the view object [{2}] references this field. Possible reasons include the business entity being modified without publishing or synchronizing the view object. Please check. +GSP_BFF_ENGINE_1027=The referenced business entity object information for the field [{1}] on the view object [{0}] is empty. Please check. +GSP_BFF_ENGINE_1028=The object [{1}] in the business entity [{0}] could not be found. The field [{4}] on the object [{3}] in the view object [{2}] references this object. Possible reasons include the business entity being modified without publishing or synchronizing the view object. Please check. +GSP_BFF_ENGINE_1029=The field [{2}] on the object [{1}] in the view object [{0}] is of an association type but no associated reference field has been set. Please set the association again. +GSP_BFF_ENGINE_1030=An exception occurred while invoking the getValue method on [{0}] to retrieve the value corresponding to the associated carried-out field [{2}] on the object [{1}]: {3}. +GSP_BFF_ENGINE_1031=An exception occurred while invoking the getValue method on [{0}] to retrieve the value corresponding to the field [{2}] on the object [{1}]: {3}. +GSP_BFF_ENGINE_1032=The information for the business entity object [ID: {2}] recorded by the object [{1}] in the view object [{0}] does not exist in the business entity object [Name: {3}, Code: {4}]. Possible reasons include the business entity being modified without publishing or synchronizing the view object. Please check. +GSP_BFF_ENGINE_1033=The business entity field [{3}] referenced by the field [{2}] on the object [{1}] in the view object [{0}] does not exist on the object [{5}] in the business entity [{4}]. Possible reasons include the business entity being modified without publishing or synchronizing the view object. Please check. +GSP_BFF_ENGINE_1034=The parameter [metadataId] cannot be empty when initializing the view object service interface. Please check. +GSP_BFF_ENGINE_1035=Metadata information could not be retrieved when initializing the service interface for the view object [ID: {0}]. Please contact an administrator or developer to update the metadata. +GSP_BFF_ENGINE_1036=The Content of the metadata information for the view object [ID: {0}] could not be retrieved when initializing the service interface. Please check. +GSP_BFF_ENGINE_1037=When initializing the view object [{0}] and the business entity information recorded by the view object, the business entity metadata for the current view object record with ID [{1}] could not be retrieved. Please contact an administrator or developer to update the business entity metadata. +GSP_BFF_ENGINE_1038=When parsing the help configuration [{1}] on the view object [{0}], the help metadata with ID [{2}] could not be retrieved. Please contact an administrator or developer to update the help metadata. +GSP_BFF_ENGINE_1039=Metadata for the business field with ID [{2}] could not be found on the object [{1}] of the view object [{0}]. Please check. +GSP_BFF_ENGINE_1040=The object with ID [{1}] could not be retrieved for the view object [{0}]. Please check. +GSP_BFF_ENGINE_1041=The field [{4}] on the metadata of the business field [{3}] referenced by the field [{2}] on the object [{1}] in the business entity [{0}] could not be retrieved. Please reselect the business field and update the business entity information. +GSP_BFF_ENGINE_1042=The view object operation with ID [{3}] does not exist for the view object [Name: {0}, Code: {1}, ID: {2}]. Please check the metadata. +GSP_BFF_ENGINE_2001=The object data of type [{0}] passed in is currently not supported when retrieving the actual object ID based on the object data. \ No newline at end of file diff --git a/In18Resources/zh-CHT/bff_engine_exception.zh-CHT.properties b/In18Resources/zh-CHT/bff_engine_exception.zh-CHT.properties index 711a853acb646040df9d7be30a450ee3d048f522..e485a086270faef8eb9bbb624081d8b33b278db9 100644 --- a/In18Resources/zh-CHT/bff_engine_exception.zh-CHT.properties +++ b/In18Resources/zh-CHT/bff_engine_exception.zh-CHT.properties @@ -1,50 +1,55 @@ -BFF_ENGINE_0001=模型[{0}]的節點[{1}]上設置的排序字段[{2}]不存在,請重新設置排序字段。 -BFF_ENGINE_0002=節點[{0}]定義的排序條件格式不正確,請檢查。 -BFF_ENGINE_0003=未找到ID為:[{0}],名稱為:[{1}]的udt元數據,請確認該元數據是否已經部署入庫。 -BFF_ENGINE_0004=沒有找到字段[{0}]的映射字段。 -BFF_ENGINE_0005=Vo[{0}]編譯失敗,多值UDT[{1}]數據庫映射有異常。 -BFF_ENGINE_0006=字段[{0}]對應的be字段沒有獲取到[{1}]。 -BFF_ENGINE_0007=[{0}]中,關聯字段[{1}]的關聯帶出字段[{2}]對應的be帶出字段不存在。 -BFF_ENGINE_0008=字段[{0}]上沒有記錄映射對象Id,請打開vo設計器重新添加字段。 -BFF_ENGINE_0009=be元數據[{0}]上沒有找到對象[{1}],對應vo對象為[{2}]。 -BFF_ENGINE_0010=節點[{0}]定義的排序條件格式不正確,請檢查。 -BFF_ENGINE_1001=擴展方法[{0}]實例化失敗。 -BFF_ENGINE_1002=找不到節點,節點編號:[{0}]。 -BFF_ENGINE_1003=未找到構件元數據[{0}],元數據id為[{1}]。 -BFF_ENGINE_1004=String[]類型反序列化失敗,值為:[{0}]。 -BFF_ENGINE_1005=ArrayList類型反序列化失敗,值為:[{0}]。 -BFF_ENGINE_1006=動作參數[{0}]的類名為空。 -BFF_ENGINE_1007=類型加載失敗:[{0}]。 -BFF_ENGINE_1008=類型反序列化失敗:[{0}]。 -BFF_ENGINE_1009=時間解析失敗:[{0}]。 -BFF_ENGINE_1010=無法識別的關聯類型。 -BFF_ENGINE_1011=字段[{0}]的關聯值克隆失敗。 -BFF_ENGINE_1012=節點[{0}]對應的be節點沒有找到,be節點Id為[{1}]。 -BFF_ENGINE_1013=ID為:[{0}],名稱為:[{1}]的Vo元數據上不存在幫助編號為:[{2}]的幫助配置節點。 -BFF_ENGINE_1014=VO元數據上[{0}]不存在幫助編號為:[{1}]的節點。 -BFF_ENGINE_1015=在編號為[{0}],名稱為[{1}],ID為[{2}]的vo元數據上,未獲取到編號為[{3}]的實體對象。 -BFF_ENGINE_1016=編號為[{0}],名稱為[{1}],ID為[{2}]的幫助元數據上記錄的VoSourceId為空。 -BFF_ENGINE_1017=不存在的幫助級聯類型[{0}]。 -BFF_ENGINE_1018=視圖對象[{0}]中沒有找到自定義動作{1}。 -BFF_ENGINE_1019=暫不支持類型為[{0}]的動作{1}。 -BFF_ENGINE_1020=data序列化報錯。 -BFF_ENGINE_1021=responseInfo序列化報錯。 -BFF_ENGINE_1022=ID為[{0}]編號為[{1}]名稱為[{2}]的業務實體所屬業務對象[{3}]不存在。 -BFF_ENGINE_1023=未找到ID為:[{0}],名稱為:[{1}]的udt元數據,請確認該元數據是否已經部署入庫。 -BFF_ENGINE_1024=Vo[{0}]編譯失敗,多值UDT[{1}]數據庫映射有異常。 -BFF_ENGINE_1025=[{0}]中,關聯字段[{1}]的關聯帶出字段[{2}]對應的be帶出字段不存在。 -BFF_ENGINE_1026=字段[{0}]對應的be字段沒有獲取到。 -BFF_ENGINE_1027=字段[{0}]上沒有記錄映射對象Id,請打開vo設計器重新添加字段。 -BFF_ENGINE_1028=be元數據[{0}]上沒有找到對象[{1}],對應vo對象為[{2}]。 -BFF_ENGINE_1029=字段[{0}]是關聯字段,但缺少關聯關係。 -BFF_ENGINE_1030=關聯類型轉換時,值[{0}]獲取失敗。 -BFF_ENGINE_1031=關聯類型轉換失敗,關聯類為:[{0}]。 -BFF_ENGINE_1032=節點[{0}]對應的be節點沒有找到,be節點Id為[{1}]。 -BFF_ENGINE_1033=字段[{0}]對應的be字段沒有找到,be字段Id為[{1}]。 -BFF_ENGINE_1034=元數據id為空。 -BFF_ENGINE_1035=找不到vo元數據,可以嘗試重新打包部署:[{0}]。 -BFF_ENGINE_1036=找不到vo元數據內容,可以嘗試重新打包部署:[{0}]。 -BFF_ENGINE_1037=後端元數據包部署失敗,vo未找到關聯be!vo元數據id:[{0}],name:[{1}],code:[{2}],相關聯be元數據id:[{3}]。 -BFF_ENGINE_1038=找不到幫助元數據,需要將要使用的幫助元數據導入或部署到數據庫,幫助元數據ID為:[{0}]。 -BFF_ENGINE_1039=主節點未匹配到ID為:[{0}]業務字段。 -BFF_ENGINE_1040=子對象[{0}]未匹配到ID為:[{1}]業務字段。 \ No newline at end of file +# bff-engine-api +GSP_BFF_ENGINE_0001=視圖對象[{0}]上的對象[{1}]上設置的排序字段[{2}]不存在,請重新設置排序字段。 +GSP_BFF_ENGINE_0002=對象[{0}]定義的排序條件格式不正確,請檢查。 +GSP_BFF_ENGINE_0003=業務字段[Name:[{0}]、ID:[{1}]]元數據未獲取到,請更新該業務字段元數據。 +GSP_BFF_ENGINE_0004=業務實體[{0}]上未找到字段[{1}]:視圖對象[{2}]中對象[{3}]上的字段[{4}]引用了該字段。可能的原因是業務實體修改後未發布或未同步視圖對象,請檢查。 +GSP_BFF_ENGINE_0005=業務字段[{0}]上未獲取到字段[{1}]:業務實體[{2}]中對象[{3}]上的字段[{4}]引用了該字段。可能的原因是業務實體修改後未發布或未同步視圖對象,請檢查。 +GSP_BFF_ENGINE_0006=業務實體[{0}]上未找到關聯引用字段[{1}]:視圖對象[{2}]中對象{3}上的關聯引用字段[{4}]引用了該字段。可能的原因是業務實體修改後未發布或未同步視圖對象,請檢查。 +GSP_BFF_ENGINE_0007=業務實體[{0}]上未找到業務字段類型關聯引用字段[{1}]:視圖對象[{2}]中對象{3}上的業務字段類型關聯引用字段[{4}]引用了該字段。可能的原因是業務實體修改後未發布或未同步視圖對象,請檢查。 +GSP_BFF_ENGINE_0008=視圖對象[{0}]字段[{1}]引用的業務實體對象信息為空,請檢查。 +GSP_BFF_ENGINE_0009=業務實體[{0}]中未找到對象[{1}];視圖對象中對象[{2}]上字段[{3}]引用了該對象。可能的原因是業務實體修改後未發布或未同步視圖對象,請檢查。 +GSP_BFF_ENGINE_0010=初始化視圖對象[{0}]上對象[{1}]的排序條件[{2}]信息時異常,請確認並正確設置視圖對象上的排序條件。 +# bff-engine-core +GSP_BFF_ENGINE_1001=視圖對象元數據上的視圖對象操作或者擴展操作或者業務實體映射操作[{0}]實例化失敗。 +GSP_BFF_ENGINE_1002=新增子對象數據時,視圖對象[{0}]上未找到編號為[{1}]的對象信息,請檢查。 +GSP_BFF_ENGINE_1003=初始化視圖對象上的操作[{0}]時,未獲取到當前操作對應的構件元數據[ID:{1}]信息,請更新該操作引用的構件元數據。 +GSP_BFF_ENGINE_1004=初始化視圖對象操作的文本數組參數[{0}]時發生異常。 +GSP_BFF_ENGINE_1005=初始化視圖對象操作的文本列表參數[{0}]時發生異常。 +GSP_BFF_ENGINE_1006=視圖對象上的操作參數類型為自定義類型時,參數[{0}]的類名稱不能為空,請聯繫管理員或者開發人員更新視圖對象元數據的參數信息。 +GSP_BFF_ENGINE_1007=視圖對象上的操作自定義類型的參數[{0}]對應的類[{1}]初始化時,未加載到該類,請聯繫管理員或者開發人員確認該類是否存在。 +GSP_BFF_ENGINE_1008=視圖對象上的操作自定義類型的參數[{0}]對應的類[{1}]序列化時發生異常:{2}。 +GSP_BFF_ENGINE_1009=解析視圖對象操作上時間類型參數的值[{0}]時異常:{1}。 +GSP_BFF_ENGINE_1010=關聯字段[{0}]設置的值[{1}]類型不對,請重新設置關聯字段以及帶出字段的值。 +GSP_BFF_ENGINE_1011=視圖對象變更集轉換為業務實體變更集時,關聯字段[{0}]對應的值[{1}]克隆失敗。 +GSP_BFF_ENGINE_1012=初始化視圖對象上對象[{0}]的變更集轉換器時,未獲取到當前引用的對象[ID:{1}]信息。可能的原因是業務實體修改後未發布或未同步視圖對象,請檢查。 +GSP_BFF_ENGINE_1013=視圖對象[Name:{0}、Code:{1}、ID:{2}]上不存在[{3}]的幫助配置信息,請重新保存當前視圖對象對應的表單更新幫助信息。 +GSP_BFF_ENGINE_1014=視圖對象[Name:{0}、Code:{1}、ID:{2}]上未匹配到對象編號[{3}]和幫助字段標籤[{4}]對應的幫助配置信息,請重新保存當前視圖對象對應的表單更新幫助信息。 +GSP_BFF_ENGINE_1015=解析幫助聯動配置信息時,視圖對象[{0}]上未匹配到編號為[{1}]的對象,請重新確認配置幫助聯動信息。 +GSP_BFF_ENGINE_1016=幫助聯動配置的幫助[Name:{0}、Code:{1}、ID:{2}]元數據上記錄的視圖對象數據源信息VoSourceId為空,請更新後重新發布幫助元數據。 +GSP_BFF_ENGINE_1017=幫助聯動配置不支持[{0}]的幫助級聯類型。 +GSP_BFF_ENGINE_1018=視圖對象[{0}]上不存在編號為[{1}]的操作,請檢查。 +GSP_BFF_ENGINE_1019=executeCustomAction方法目前只支持視圖對象上[Name:{0}、Code:{1}、ID:{2}]操作類型為BEAction以及VOAction的操作,暫不支持類型為[{3}]的操作[{4}]。 +GSP_BFF_ENGINE_1020=查詢數據結果QueryResult實體類序列化異常:{0}。 +GSP_BFF_ENGINE_1021=請求返回結果ResponseInfo實體類序列化異常:{0}。 +GSP_BFF_ENGINE_1022=視圖對象[Name:{0}、Code:{1}、ID:{2}]元數據所屬的業務對象[{3}]不存在,請檢查。 +GSP_BFF_ENGINE_1023=業務字段[Name:{0}、ID:{1}]元數據未獲取到,請更新該業務字段元數據。 +GSP_BFF_ENGINE_1024=業務字段[{0}]上未獲取到字段[{1}]:業務實體[{2}]中對象[{3}]上的字段[{4}]引用了該字段。可能的原因是業務實體修改後未發布或未同步視圖對象,請檢查。 +GSP_BFF_ENGINE_1025=業務實體[{0}]上未找到字段[{1}]:視圖對象[{2}]中對象[{3}]上的字段[{4}]引用了該字段。可能的原因是業務實體修改後未發布或未同步視圖對象,請檢查。 +GSP_BFF_ENGINE_1026=業務實體[{0}]上未找到關聯引用字段[{1}]:視圖對象[{2}]中對象[{3}]上的關聯引用字段[{4}]引用了該字段。可能的原因是業務實體修改後未發布或未同步視圖對象,請檢查。 +GSP_BFF_ENGINE_1027=視圖對象[{0}]字段[{1}]引用的業務實體對象信息為空,請檢查。 +GSP_BFF_ENGINE_1028=業務實體[{0}]中未找到對象[{1}];視圖對象[{2}]中對象[{3}]上字段[{4}]引用了該對象。可能的原因是業務實體修改後未發布或未同步視圖對象,請檢查。 +GSP_BFF_ENGINE_1029=視圖對象[{0}]上對象[{1}]的字段[{2}]是關聯類型的字段,但是沒有設置關聯引用字段,請重新設置關聯。 +GSP_BFF_ENGINE_1030=反射調用[{0}]上的getValue方法獲取對象[{1}]上關聯帶出字段[{2}]對應的值時發生異常:{3}。 +GSP_BFF_ENGINE_1031=反射調用[{0}]上的getValue方法獲取對象[{1}]上字段[{2}]對應的值時發生異常:{3}。 +GSP_BFF_ENGINE_1032=視圖對象[{0}]中對象[{1}]記錄的業務實體對象[ID:{2}]信息,在業務實體對象[Name:{3}、Code:{4}]不存在。可能的原因是業務實體修改後未發布或未同步視圖對象,請檢查。 +GSP_BFF_ENGINE_1033=視圖對象[{0}]上對象[{1}]上字段[{2}]引用的的業務實體字段[{3}]在業務實體[{4}]的對象[{5}]上不存在。可能的原因是業務實體修改後未發布或未同步視圖對象,請檢查。 +GSP_BFF_ENGINE_1034=初始化視圖對象服務接口時,傳入的參數[metadataId]不能為空,請檢查。 +GSP_BFF_ENGINE_1035=初始化視圖對象[ID:{0}]服務接口時,未獲取到元數據信息,請聯繫管理員或者開發人員更新該元數據。 +GSP_BFF_ENGINE_1036=初始化視圖對象[ID:{0}]服務接口時,未獲取到該元數據信息的Content內容,請檢查。 +GSP_BFF_ENGINE_1037=初始化視圖對象[{0}]和視圖對象記錄的業務實體信息時,未獲取到當前視圖對象記錄的ID為[{1}]業務實體元數據,請聯繫管理員或者開發人員更新業務實體元數據。 +GSP_BFF_ENGINE_1038=視圖對象[{0}]上解析幫助配置[{1}]時,未獲取到ID為[{2}]幫助元數據,請聯繫管理員或者開發人員更新該幫助元數據。 +GSP_BFF_ENGINE_1039=視圖對象[{0}]的對象[{1}]上未找到元數據ID為:[{2}]的業務字段元數據,請檢查。 +GSP_BFF_ENGINE_1040=視圖對象[{0}]上未獲取到到編號為:[{1}]的對象,請檢查。 +GSP_BFF_ENGINE_1041=業務實體[{0}]中對象[{1}]上字段[{2}]引用的業務字段[{3}]元數據上的字段[{4}]未獲取到,請重新選擇業務字段更新業務實體信息。 +GSP_BFF_ENGINE_1042=視圖對象[Name:{0}、Code:{1}、ID:{2}]上不存在編號為[{3}]的視圖對象操作,請檢查元數據。 +GSP_BFF_ENGINE_2001=根據對象數據獲取對象實際編號時,傳入的類型為[{0}]的對象數據暫不支持。 \ No newline at end of file diff --git a/bff-engine-api/src/main/java/com/inspur/edp/bff/engine/api/exception/BffEngineException.java b/bff-engine-api/src/main/java/com/inspur/edp/bff/engine/api/exception/BffEngineException.java index d2344c1c484d8e8d097e65c3cae453be60a24708..4ad1842f896ab61432b44cccb060e9d319e75b60 100644 --- a/bff-engine-api/src/main/java/com/inspur/edp/bff/engine/api/exception/BffEngineException.java +++ b/bff-engine-api/src/main/java/com/inspur/edp/bff/engine/api/exception/BffEngineException.java @@ -37,21 +37,22 @@ public class BffEngineException extends CAFRuntimeException { public BffEngineException(Throwable innerException) { super(SU, "", "", (Exception) innerException); } - public BffEngineException(ErrorCodes errCodes) { super(SU, RESOURCE_FILE, errCodes.name(), null, null, ExceptionLevel.Error, true); } public BffEngineException(ErrorCodes errCodes, String... messageParams) { - super(SU, RESOURCE_FILE, errCodes.name(), messageParams, null, ExceptionLevel.Error, true); + super(SU, RESOURCE_FILE, errCodes.name(), messageParams, null, ExceptionLevel.Error, false); + } + public BffEngineException(ErrorCodes errCodes, boolean bizException, String... messageParams) { + super(SU, RESOURCE_FILE, errCodes.name(), messageParams, null, ExceptionLevel.Error, bizException); } - public BffEngineException(Throwable innerException, ErrorCodes errCodes, String... messageParams) { - super(SU, RESOURCE_FILE, errCodes.name(), messageParams, (Exception) innerException, ExceptionLevel.Error, true); + super(SU, RESOURCE_FILE, errCodes.name(), messageParams, (Exception) innerException, ExceptionLevel.Error, false); } public BffEngineException(String SUCode, ErrorCodes errCodes, String... messageParams) { - super(SUCode, RESOURCE_FILE, errCodes.name(), messageParams, null, ExceptionLevel.Error, true); + super(SUCode, RESOURCE_FILE, errCodes.name(), messageParams, null, ExceptionLevel.Error, false); } public BffEngineException(ErrorCodes errCodes, String message, Exception innerException) { diff --git a/bff-engine-api/src/main/java/com/inspur/edp/bff/engine/api/exception/ErrorCodes.java b/bff-engine-api/src/main/java/com/inspur/edp/bff/engine/api/exception/ErrorCodes.java index cf31bd60a14d79e985172eca45aa8af6e4d9cf6b..abab303327394b4d684f0651a40d0e2588cbe4fd 100644 --- a/bff-engine-api/src/main/java/com/inspur/edp/bff/engine/api/exception/ErrorCodes.java +++ b/bff-engine-api/src/main/java/com/inspur/edp/bff/engine/api/exception/ErrorCodes.java @@ -26,214 +26,43 @@ package com.inspur.edp.bff.engine.api.exception; */ public enum ErrorCodes { /** - * api包 - * 模型[{0}]的节点[{1}]上设置的排序字段[{2}]不存在, 请重新设置排序字段. + * 视图对象[{0}]上的对象[{1}]上设置的排序字段[{2}]不存在,请重新设置排序字段 */ - BFF_ENGINE_0001, + GSP_BFF_ENGINE_0001, /** - * 节点[{0}]定义的排序条件格式不正确, 请检查 + * 对象[{0}]定义的排序条件格式不正确,请检查 */ - BFF_ENGINE_0002, + GSP_BFF_ENGINE_0002, /** - * 未找到ID为:[{0}],名称为:[{1}]的udt元数据,请确认该元数据是否已经部署入库。 + * 业务字段[Name:[{0}]、ID:[{1}]]元数据未获取到,请更新该业务字段元数据 */ - BFF_ENGINE_0003, + GSP_BFF_ENGINE_0003, /** - * 没有找到字段[{0}]的映射字段 + * 业务实体[{0}]上未找到字段[{1}]:视图对象[{2}]中对象[{3}]上的字段[{4}]引用了该字段。可能的原因是业务实体修改后未发布或未同步视图对象,请检查 */ - BFF_ENGINE_0004, + GSP_BFF_ENGINE_0004, /** - * Vo[{0}]编译失败,多值UDT[{1}]数据库映射有异常 + * 业务字段[{0}]上未获取到字段[{1}]:业务实体[{2}]中对象[{3}]上的字段[{4}]引用了该字段。可能的原因是业务实体修改后未发布或未同步视图对象,请检查 */ - BFF_ENGINE_0005, + GSP_BFF_ENGINE_0005, /** - * 字段[{0}]对应的be字段没有获取到[{1}] + * 业务实体[{0}]上未找到关联引用字段[{1}]:视图对象[{2}]中对象{3}上的关联引用字段[{4}]引用了该字段。可能的原因是业务实体修改后未发布或未同步视图对象,请检 */ - BFF_ENGINE_0006, + GSP_BFF_ENGINE_0006, /** - * [{0}]中,关联字段[{1}]的关联带出字段[{2}]对应的be带出字段不存在 + * 业务实体[{0}]上未找到业务字段类型关联引用字段[{1}]:视图对象[{2}]中对象{3}上的业务字段类型关联引用字段[{4}]引用了该字段。可能的原因是业务实体修改后未发布或未同步视图对象,请检查 */ - BFF_ENGINE_0007, + GSP_BFF_ENGINE_0007, /** - * 字段[{0}]上没有记录映射对象Id,请打开vo设计器重新添加字段 + * 视图对象[{0}]字段[{1}]引用的业务实体对象信息为空,请检查 */ - BFF_ENGINE_0008, + GSP_BFF_ENGINE_0008, /** - * be元数据[{0}]上没有找到对象[{1}],对应vo对象为[{2}] + * 业务实体[{0}]中未找到对象[{1}];视图对象中对象[{2}]上字段[{3}]引用了该对象。可能的原因是业务实体修改后未发布或未同步视图对象,请检查 */ - BFF_ENGINE_0009, + GSP_BFF_ENGINE_0009, /** - * 节点[{0}]定义的排序条件格式不正确,请检查 + * 初始化视图对象[{0}]上对象[{1}]的排序条件[{2}]信息时异常,请确认并正确设置视图对象上的排序条件 */ - BFF_ENGINE_0010, - /** - * core包 - * 扩展方法[{0}]实例化失败 - */ - BFF_ENGINE_1001, - /** - * 找不到节点,节点编号:[{0}] - */ - BFF_ENGINE_1002, - /** - * 未找到构件元数据[{0}],元数据id为[{1}] - */ - BFF_ENGINE_1003, - /** - * String[]类型反序列化失败,值为:[{0}] - */ - BFF_ENGINE_1004, - /** - * ArrayList类型反序列化失败,值为:[{0}] - */ - BFF_ENGINE_1005, - /** - * 动作参数[{0}]的类名为空 - */ - BFF_ENGINE_1006, - /** - * 类型加载失败:[{0}] - */ - BFF_ENGINE_1007, - /** - * 类型反序列化失败:[{0}] - */ - BFF_ENGINE_1008, - /** - * 时间解析失败:[{0}] - */ - BFF_ENGINE_1009, - /** - * 无法识别的关联类型. - */ - BFF_ENGINE_1010, - /** - * 字段[{0}]的关联值克隆失败 - */ - BFF_ENGINE_1011, - /** - * 节点【[{0}]】对应的be节点没有找到,be节点Id为[{1}] - */ - BFF_ENGINE_1012, - /** - * ID为:[{0}],名称为:[{1}]的Vo元数据上不存在帮助编号为:[{2}]的帮助配置节点 - */ - BFF_ENGINE_1013, - /** - * VO元数据上[{0}]不存在帮助编号为:[{1}]的节点 - */ - BFF_ENGINE_1014, - /** - * 在编号为[{0}],名称为[{1}],ID为[{2}]的vo元数据上,未获取到编号为[{3}]的实体对象 - */ - BFF_ENGINE_1015, - /** - * 编号为[{0}],名称为[{1}],ID为[{2}]的帮助元数据上记录的VoSourceId为空 - */ - BFF_ENGINE_1016, - /** - * 不存在的帮助级联类型[{0}] - */ - BFF_ENGINE_1017, - /** - * 视图对象[{0}]中没有找到自定义动作{1}. - */ - BFF_ENGINE_1018, - /** - * 暂不支持类型为[{0}]的动作{1}. - */ - BFF_ENGINE_1019, - /** - * data序列化报错 - */ - BFF_ENGINE_1020, - /** - * responseInfo序列化报错 - */ - BFF_ENGINE_1021, - /** - * ID为[{0}]编号为[{1}]名称为[{2}]的业务实体所属业务对象[{3}]不存在 - */ - BFF_ENGINE_1022, - /** - * 未找到ID为:[{0}],名称为:[{1}]的udt元数据,请确认该元数据是否已经部署入库。 - */ - BFF_ENGINE_1023, - /** - * Vo[{0}]编译失败,多值UDT[{1}]数据库映射有异常 - */ - BFF_ENGINE_1024, - /** - * [{0}]中,关联字段[{1}]的关联带出字段[{2}]对应的be带出字段不存在 - */ - BFF_ENGINE_1025, - /** - * 字段[{0}]对应的be字段没有获取到 - */ - BFF_ENGINE_1026, - /** - * 字段[{0}]上没有记录映射对象Id,请打开vo设计器重新添加字段 - */ - BFF_ENGINE_1027, - /** - * be元数据[{0}]上没有找到对象[{1}],对应vo对象为[{2}] - */ - BFF_ENGINE_1028, - /** - * 字段[{0}]是关联字段,但缺少关联关系 - */ - BFF_ENGINE_1029, - /** - * 关联类型转换时,值[{0}]获取失败 - */ - BFF_ENGINE_1030, - /** - * 关联类型转换失败, 关联类为:[{0}] - */ - BFF_ENGINE_1031, - /** - * 节点[{0}]对应的be节点没有找到,be节点Id为[{1}] - */ - BFF_ENGINE_1032, - /** - * 字段[{0}]对应的be字段没有找到,be字段Id为[{1}] - */ - BFF_ENGINE_1033, - /** - * 元数据id为空 - */ - BFF_ENGINE_1034, - /** - * 找不到vo元数据, 可以尝试重新打包部署:[{0}] - */ - BFF_ENGINE_1035, - /** - * 找不到vo元数据内容, 可以尝试重新打包部署:[{0}] - */ - BFF_ENGINE_1036, - /** - * 后端元数据包部署失败,vo未找到关联be! vo元数据id:[{0}],name:[{1}],code:[{2}], 相关联be元数据id:[{3}] - */ - BFF_ENGINE_1037, - /** - * 找不到帮助元数据, 需要将要使用的帮助元数据导入或者部署到数据库,帮助元数据ID为:[{0}] - */ - BFF_ENGINE_1038, - /** - * 主节点未匹配到ID为:[{0}]业务字段 - */ - BFF_ENGINE_1039, - /** - * 子对象[{0}]未匹配到ID为:[{1}]业务字段 - */ - BFF_ENGINE_1040, - /** - * - */ - BFF_ENGINE_1041, - - /** - * 获取当前数据集对应的子表编号出错 - */ - BFF_ENGINE_2001 + GSP_BFF_ENGINE_0010 } diff --git a/bff-engine-api/src/main/java/com/inspur/edp/bff/engine/api/filter/FilterConvertorUtil.java b/bff-engine-api/src/main/java/com/inspur/edp/bff/engine/api/filter/FilterConvertorUtil.java index 5597e51f085db1609b93577370e11fd7ab17f2ad..0049fc71ad609cf94943414fc02415eed38a5019 100644 --- a/bff-engine-api/src/main/java/com/inspur/edp/bff/engine/api/filter/FilterConvertorUtil.java +++ b/bff-engine-api/src/main/java/com/inspur/edp/bff/engine/api/filter/FilterConvertorUtil.java @@ -28,7 +28,6 @@ import com.inspur.edp.das.commonmodel.IGspCommonElement; import com.inspur.edp.das.commonmodel.IGspCommonObject; import com.inspur.edp.formserver.viewmodel.GspViewModel; import com.inspur.edp.formserver.viewmodel.GspViewModelElement; -import com.inspur.edp.formserver.viewmodel.GspViewObject; import com.inspur.edp.udt.designtime.api.entity.ComplexDataTypeDef; import com.inspur.edp.udt.designtime.api.entity.SimpleDataTypeDef; import com.inspur.edp.udt.designtime.api.entity.UnifiedDataTypeDef; @@ -79,8 +78,8 @@ public class FilterConvertorUtil { public static void initUdtElement(IGspCommonField voElement, String parentLabel, String returnValue, GspBusinessEntity be, GspViewModel vo, Map filterDic) { UnifiedDataTypeDef udt = (UnifiedDataTypeDef) CMEngineUtil.getMetadataContent(voElement.getUdtID()); if (udt == null) { - String[] messageParams = new String[]{ voElement.getUdtID(), voElement.getUdtName()}; - throw new BffEngineException(ErrorCodes.BFF_ENGINE_0003,messageParams ); + throw new BffEngineException(ErrorCodes.GSP_BFF_ENGINE_0003, + voElement.getUdtName(),voElement.getUdtID()); } if (udt != null && udt instanceof SimpleDataTypeDef) { initSimpleUdtElement(voElement, (udt instanceof SimpleDataTypeDef) ? (SimpleDataTypeDef)udt : null, parentLabel, returnValue, be, vo, filterDic); @@ -101,7 +100,10 @@ public class FilterConvertorUtil { IGspCommonField beElement = getBeElement((voElement instanceof GspViewModelElement) ? (GspViewModelElement)voElement : null, be); if (beElement == null) { - throw new BffEngineException(ErrorCodes.BFF_ENGINE_0004,voElement.getLabelID()); + String viewObject=voElement.getBelongObject()==null? "":voElement.getBelongObject().getName(); + GspViewModelElement viewModelElement= (GspViewModelElement) voElement; + throw new BffEngineException(ErrorCodes.GSP_BFF_ENGINE_0004,be.getName(),viewModelElement.getMapping().getTargetElementId(),vo.getName(),viewObject, + viewModelElement.getLabelID()); } String value = isNullOrEmpty(returnValue) ? beElement.getLabelID() : returnValue; @@ -121,7 +123,10 @@ public class FilterConvertorUtil { IGspCommonField beElement = getBeElement((voElement instanceof GspViewModelElement) ? (GspViewModelElement)voElement : null, be); if (beElement == null) { - throw new BffEngineException(ErrorCodes.BFF_ENGINE_0004,voElement.getLabelID()); + String viewObject=voElement.getBelongObject()==null? "":voElement.getBelongObject().getName(); + GspViewModelElement viewModelElement= (GspViewModelElement) voElement; + throw new BffEngineException(ErrorCodes.GSP_BFF_ENGINE_0004,be.getName(),viewModelElement.getMapping().getTargetElementId(),vo.getName(),viewObject, + viewModelElement.getLabelID()); } for (MappingInfo mapping : beElement.getMappingRelation()) { @@ -131,8 +136,8 @@ public class FilterConvertorUtil { IGspCommonField udtElement = udt.findElement(udtEleId); if (beChildElement == null || udtElement == null) { - String[] messageParams = new String[]{ vo.getMainObject().getBelongModel().getCode(), udt.getCode()}; - throw new BffEngineException(ErrorCodes.BFF_ENGINE_0005,messageParams); + String beObject=beElement.getBelongObject()==null? "":beElement.getBelongObject().getName(); + throw new BffEngineException(ErrorCodes.GSP_BFF_ENGINE_0005,udt.getName(),udtEleId,be.getName(),beObject,beElement.getName()); } buildUdtElementSection(voElement, udtElement, beChildElement, udt, filterDic); } @@ -174,8 +179,9 @@ public class FilterConvertorUtil { IGspCommonField beElement = getBeElement((refElement instanceof GspViewModelElement) ? (GspViewModelElement)refElement : null, be); if (beElement == null) { - String[] messageParams = new String[]{((GspViewObject)voElement.getBelongObject()).getBelongModel().getCode(), voElement.getLabelID(),refElement.getLabelID()}; - throw new BffEngineException(ErrorCodes.BFF_ENGINE_0007,messageParams); + GspViewModelElement viewModelElement= (GspViewModelElement) refElement; + String viewObject=voElement.getBelongObject()==null? "":voElement.getBelongObject().getName(); + throw new BffEngineException(ErrorCodes.GSP_BFF_ENGINE_0007,be.getName(),viewModelElement.getMapping().getTargetElementId(),vo.getName(),viewObject,viewModelElement.getName()); } IGspCommonField udtRefElement = getUdtRefElement(refElement, udtAsso); String childValue = isNullOrEmpty(returnValue) ? beElement.getLabelID() : returnValue; @@ -211,11 +217,10 @@ public class FilterConvertorUtil { initFilterDic(parentLabel + "." + parentLabel, parentLabel, filterDic); for (IGspCommonField refElement : asso.getRefElementCollection()) { IGspCommonField beElement = getBeElement((refElement instanceof GspViewModelElement) ? (GspViewModelElement)refElement : null, be); - - if (beElement == null) { - String[] messageParams = new String[]{ refElement.getLabelID(), ((GspViewModelElement)refElement).getMapping().getTargetElementId()}; - throw new BffEngineException(ErrorCodes.BFF_ENGINE_0006,messageParams); + GspViewModelElement viewModelElement= (GspViewModelElement) refElement; + String viewObject=voElement.getBelongObject()==null? "":voElement.getBelongObject().getName(); + throw new BffEngineException(ErrorCodes.GSP_BFF_ENGINE_0006,be.getName(),viewModelElement.getMapping().getTargetElementId(),vo.getName(),viewObject,viewModelElement.getName()); } String childValue = isNullOrEmpty(returnValue) ? beElement.getLabelID() : returnValue; String childLabel = isNullOrEmpty(parentLabel) ? refElement.getLabelID() : parentLabel; @@ -237,8 +242,10 @@ public class FilterConvertorUtil { public static IGspCommonField getBeElement(GspViewModelElement voElement, GspBusinessEntity be) { String objId = voElement.getMapping().getTargetObjectId(); - if (objId == null || "".equals(objId)) - throw new BffEngineException(ErrorCodes.BFF_ENGINE_0008, voElement.getCode()); + String viewObject=voElement.getBelongObject()==null? "":voElement.getBelongObject().getName(); + if (objId == null || "".equals(objId)) { + throw new BffEngineException(ErrorCodes.GSP_BFF_ENGINE_0008, viewObject,voElement.getName()); + } if (objId.equals(be.getMainObject().getID())) { return getBeElemet(voElement, (IGspCommonObject)be.getMainObject()); } @@ -254,8 +261,7 @@ public class FilterConvertorUtil { IGspCommonObject beObj = elementBelongBe.findObjectById(objId); if (beObj == null) { - String[] messageParams = new String[]{be.getCode(), objId,voElement.getBelongObject().getCode()}; - throw new BffEngineException(ErrorCodes.BFF_ENGINE_0009,messageParams); + throw new BffEngineException(ErrorCodes.GSP_BFF_ENGINE_0009,be.getName(),objId,viewObject,voElement.getName()); } return getBeElemet(voElement, beObj); } diff --git a/bff-engine-api/src/main/java/com/inspur/edp/bff/engine/api/resource/BffEngineEntityResourceInfo.java b/bff-engine-api/src/main/java/com/inspur/edp/bff/engine/api/resource/BffEngineEntityResourceInfo.java index 938ebbb8ebc8a52b679b1e37452dd2c9941a6549..83d4a690def94a79dec5779fed4419f940d1063d 100644 --- a/bff-engine-api/src/main/java/com/inspur/edp/bff/engine/api/resource/BffEngineEntityResourceInfo.java +++ b/bff-engine-api/src/main/java/com/inspur/edp/bff/engine/api/resource/BffEngineEntityResourceInfo.java @@ -27,7 +27,6 @@ import com.inspur.edp.cef.entity.condition.SortCondition; import com.inspur.edp.cef.spi.entity.resourceInfo.builinImpls.CefModelResInfoImpl; import com.inspur.edp.das.commonmodel.IGspCommonElement; import com.inspur.edp.das.commonmodel.IGspCommonObject; -import com.inspur.edp.formserver.viewmodel.GspViewModel; import com.inspur.edp.formserver.viewmodel.GspViewModelElement; import com.inspur.edp.formserver.viewmodel.GspViewObject; import io.iec.edp.caf.common.JSONSerializer; @@ -62,18 +61,13 @@ public class BffEngineEntityResourceInfo extends BffEntityResInfoImpl { try { sorts = JSONSerializer.deserialize(obj.getOrderbyCondition(), List.class, SortCondition.class); } catch (Exception e) { - if (obj.getBelongModel() != null) { - throw new BffEngineException(e); - } else { - throw new BffEngineException(e, ErrorCodes.BFF_ENGINE_1010, obj.getCode()); - } + throw new BffEngineException(e, ErrorCodes.GSP_BFF_ENGINE_0010,this.modelResInfo.getRootNodeCode(),obj.getName(),obj.getOrderbyCondition()); } if(sorts != null && !sorts.isEmpty()) { sorts.stream().forEach(sort -> { IGspCommonElement element = obj.getElementByLabelId(sort.getSortField()); if(element == null) { - String[] messageParams = new String[]{ obj.getBelongModel().getCode() , obj.getCode(),sort.getSortField()}; - throw new BffEngineException(ErrorCodes.BFF_ENGINE_0001,messageParams); + throw new BffEngineException(ErrorCodes.GSP_BFF_ENGINE_0001,this.modelResInfo.getRootNodeCode(),obj.getName(),sort.getSortField()); } if(element.getParentAssociation() != null) { sort.setSortField(element.getParentAssociation().getBelongElement().getLabelID() + "." + element.getLabelID()); diff --git a/bff-engine-core/src/main/java/com/inspur/edp/bff/engine/core/BffEngineAccessorCreator.java b/bff-engine-core/src/main/java/com/inspur/edp/bff/engine/core/BffEngineAccessorCreator.java index a1958b3b349620ea4aaf5d8b207fd4bf70f2b19b..f7c0ed739ceb5931e354b611fa712450aa86ad7c 100644 --- a/bff-engine-core/src/main/java/com/inspur/edp/bff/engine/core/BffEngineAccessorCreator.java +++ b/bff-engine-core/src/main/java/com/inspur/edp/bff/engine/core/BffEngineAccessorCreator.java @@ -16,9 +16,8 @@ package com.inspur.edp.bff.engine.core; -import com.inspur.edp.bef.bizentity.GspBusinessEntity; -import com.inspur.edp.bff.engine.api.exception.BffEngineException; -import com.inspur.edp.bff.engine.api.exception.ErrorCodes; +import com.inspur.edp.bff.engine.core.exception.BffEngineCoreException; +import com.inspur.edp.bff.engine.core.exception.BffEngineCoreErrorCodes; import com.inspur.edp.bff.engine.entity.BffEngineChildAccessor; import com.inspur.edp.bff.engine.entity.BffEngineRootAccessor; import com.inspur.edp.bff.engine.entity.BffEngineRootReadonlyAccessor; @@ -56,7 +55,7 @@ public class BffEngineAccessorCreator implements IEntityAccessorCreator { return new BffEngineChildAccessor(obj, (IEntityData)data, getResInfo(obj.getCode())); } - throw new BffEngineException(ErrorCodes.BFF_ENGINE_1002,nodeCode); + throw new BffEngineCoreException(BffEngineCoreErrorCodes.GSP_BFF_ENGINE_1002,vo.getName(),nodeCode); } @Override diff --git a/bff-engine-core/src/main/java/com/inspur/edp/bff/engine/core/BffEngineManagerImpl.java b/bff-engine-core/src/main/java/com/inspur/edp/bff/engine/core/BffEngineManagerImpl.java index fccd87d30ab1bf4b39d4e553c7f5976f4fa39261..6aa265284c4dd96ca68295b9e791d041970c4325 100644 --- a/bff-engine-core/src/main/java/com/inspur/edp/bff/engine/core/BffEngineManagerImpl.java +++ b/bff-engine-core/src/main/java/com/inspur/edp/bff/engine/core/BffEngineManagerImpl.java @@ -22,7 +22,6 @@ import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.databind.node.ArrayNode; import com.fasterxml.jackson.databind.node.ObjectNode; -import com.inspur.edp.bef.api.exceptions.ErrorCodes; import com.inspur.edp.bef.api.lcp.IStandardLcp; import com.inspur.edp.bef.bizentity.GspBizEntityObject; import com.inspur.edp.bef.bizentity.GspBusinessEntity; @@ -41,7 +40,8 @@ import com.inspur.edp.bff.api.manager.assembler.IAssemblerManager; import com.inspur.edp.bff.core.filter.FilterFieldConvertor; import com.inspur.edp.bff.core.manager.builtinimpl.BffBuiltInManager; import com.inspur.edp.bff.engine.api.BffEngineManager; -import com.inspur.edp.bff.engine.api.exception.BffEngineException; +import com.inspur.edp.bff.engine.core.exception.BffEngineCoreErrorCodes; +import com.inspur.edp.bff.engine.core.exception.BffEngineCoreException; import com.inspur.edp.bff.engine.api.resource.BffEngineModelResInfo; import com.inspur.edp.bff.engine.core.action.BffEngineAssemblerBase; import com.inspur.edp.bff.engine.core.action.BffEngineAssemblerManager; @@ -141,15 +141,15 @@ public class BffEngineManagerImpl extends BffBuiltInManager implements BffEngine private void initMetadata(String metadataId) { if (metadataId == null) { - throw new BffEngineException(com.inspur.edp.bff.engine.api.exception.ErrorCodes.BFF_ENGINE_1034); + throw new BffEngineCoreException(BffEngineCoreErrorCodes.GSP_BFF_ENGINE_1034); } metadata = CMEngineUtil.getMetadata(metadataId); if (metadata == null) { - throw new BffEngineException(com.inspur.edp.bff.engine.api.exception.ErrorCodes.BFF_ENGINE_1035, metadataId); + throw new BffEngineCoreException(BffEngineCoreErrorCodes.GSP_BFF_ENGINE_1035, metadataId); } vo = (GspViewModel) metadata.getContent(); if (vo == null) { - throw new BffEngineException(com.inspur.edp.bff.engine.api.exception.ErrorCodes.BFF_ENGINE_1036, metadataId); + throw new BffEngineCoreException(BffEngineCoreErrorCodes.GSP_BFF_ENGINE_1036, metadataId); } // 添加运行时定制扩展 if (metadata.getHeader().isExtendable()) { @@ -165,8 +165,7 @@ public class BffEngineManagerImpl extends BffBuiltInManager implements BffEngine String beId = vo.getMapping().getTargetMetadataId(); be = CMEngineUtil.getMetadataContent(beId); if (be == null) { - String[] msg = new String[]{vo.getID(), vo.getName(), vo.getCode(), beId}; - throw new BffEngineException(com.inspur.edp.bff.engine.api.exception.ErrorCodes.BFF_ENGINE_1037, msg); + throw new BffEngineCoreException(BffEngineCoreErrorCodes.GSP_BFF_ENGINE_1037, this.vo.getName(), beId); } voNodeMap = new HashMap<>(); beNodeMap = new HashMap<>(); @@ -216,7 +215,7 @@ public class BffEngineManagerImpl extends BffBuiltInManager implements BffEngine if (entityData instanceof EngineChildAccessor) { return ((EngineChildAccessor) entityData).getNodeCode(); } - throw new BffEngineException(com.inspur.edp.bff.engine.api.exception.ErrorCodes.BFF_ENGINE_2001, "获取当前数据集对应的子表编号出错", null); + throw new BffEngineCoreException(BffEngineCoreErrorCodes.GSP_BFF_ENGINE_2001,entityData.getClass().getName()); } @Override @@ -295,8 +294,7 @@ public class BffEngineManagerImpl extends BffBuiltInManager implements BffEngine String elementId = s + '/' + s1; VMHelpConfig helpConfig = getHelpConfig(s, s1); if (helpConfig == null) { - String[] messageParams = new String[]{vo.getId(), vo.getName(), elementId}; - throw new BffEngineException(com.inspur.edp.bff.engine.api.exception.ErrorCodes.BFF_ENGINE_1013, messageParams); + throw new BffEngineCoreException(BffEngineCoreErrorCodes.GSP_BFF_ENGINE_1013,vo.getName(),vo.getCode(), vo.getID(),elementId); } String helpId = helpConfig.getHelpId(); return helpId; @@ -366,8 +364,7 @@ public class BffEngineManagerImpl extends BffBuiltInManager implements BffEngine return getVmHelpConfig(config, vo.getID(), elementId); } } - String[] messageParams = new String[]{vo.getName(), elementId}; - throw new BffEngineException(ErrorCodes.NoScope, com.inspur.edp.bff.engine.api.exception.ErrorCodes.BFF_ENGINE_1014, messageParams); + throw new BffEngineCoreException(BffEngineCoreErrorCodes.GSP_BFF_ENGINE_1014,vo.getName(), vo.getCode(),vo.getID(),codeName,labelId); } protected VMHelpConfig getVmHelpConfig(ValueHelpConfig config, String voID, String helpElementID) { @@ -411,8 +408,7 @@ public class BffEngineManagerImpl extends BffBuiltInManager implements BffEngine private void handleSourceField(LinkedConfig linkedConfig, VmLinkedConfig vmLinkedConfig, String sourceObjCode, GspViewModel vo) { GspViewObject sourceObject = LinkedHelpConfigUtil.getObjectByCode(vo, sourceObjCode); if (sourceObject == null) { - String[] messageParams = new String[]{vo.getCode(), vo.getName(), vo.getID(), sourceObjCode}; - throw new BffEngineException(com.inspur.edp.bff.engine.api.exception.ErrorCodes.BFF_ENGINE_1015, messageParams); + throw new BffEngineCoreException(BffEngineCoreErrorCodes.GSP_BFF_ENGINE_1015, vo.getName(),sourceObjCode); } String sourceField = linkedConfig.getLinkedFieldsMapping().getSourceField(); String sourceMappingField = LinkedHelpConfigUtil.getSourceMappingField(sourceObject, sourceField); @@ -423,13 +419,12 @@ public class BffEngineManagerImpl extends BffBuiltInManager implements BffEngine String helpId = config.getHelpId(); GspMetadata metadata = CMEngineUtil.getMetadata(helpId); if (metadata == null) { - throw new BffEngineException(com.inspur.edp.bff.engine.api.exception.ErrorCodes.BFF_ENGINE_1038, helpId); + throw new BffEngineCoreException(BffEngineCoreErrorCodes.GSP_BFF_ENGINE_1038, this.vo.getName(),config.getHelpElementID(),helpId); } HelpMetadataContent helpMeta = (HelpMetadataContent) metadata.getContent(); String targetVoId = helpMeta.getDataSource().getVoSourceId(); if (targetVoId == null || "".equals(targetVoId)) { - String[] messageParams = new String[]{helpMeta.getCode(), helpMeta.getName(), helpId}; - throw new BffEngineException(com.inspur.edp.bff.engine.api.exception.ErrorCodes.BFF_ENGINE_1016, messageParams); + throw new BffEngineCoreException(BffEngineCoreErrorCodes.GSP_BFF_ENGINE_1016, helpMeta.getName(),helpMeta.getCode(),helpId); } return targetVoId; } @@ -440,7 +435,7 @@ public class BffEngineManagerImpl extends BffBuiltInManager implements BffEngine String helpId = helpConfig.getHelpId(); GspMetadata metadata = CMEngineUtil.getMetadata(helpId); if (metadata == null) { - throw new BffEngineException(com.inspur.edp.bff.engine.api.exception.ErrorCodes.BFF_ENGINE_1038, helpId); + throw new BffEngineCoreException(BffEngineCoreErrorCodes.GSP_BFF_ENGINE_1038, this.vo.getName(),helpConfig.getHelpElementID(),helpId); } HelpMetadataContent helpMeta = (HelpMetadataContent) metadata.getContent(); boolean pathCodeTree = helpMeta.getDataSource().getTreeInfo().isPathCodeTree(); @@ -456,7 +451,7 @@ public class BffEngineManagerImpl extends BffBuiltInManager implements BffEngine case Tree: return VmLinkedType.Tree; default: - throw new BffEngineException(com.inspur.edp.bff.engine.api.exception.ErrorCodes.BFF_ENGINE_1017, String.valueOf(linkedType)); + throw new BffEngineCoreException(BffEngineCoreErrorCodes.GSP_BFF_ENGINE_1017, String.valueOf(linkedType)); } } @@ -532,8 +527,7 @@ public class BffEngineManagerImpl extends BffBuiltInManager implements BffEngine Map actions = getAllActions(); if (!actions.containsKey(actionCode)) { - String[] messageParams = new String[]{vo.getCode(), actionCode}; - throw new BffEngineException(com.inspur.edp.bff.engine.api.exception.ErrorCodes.BFF_ENGINE_1018, messageParams); + throw new BffEngineCoreException(BffEngineCoreErrorCodes.GSP_BFF_ENGINE_1042, vo.getName(),vo.getCode(),vo.getID(),actionCode); } ViewModelAction action = actions.get(actionCode); @@ -553,8 +547,8 @@ public class BffEngineManagerImpl extends BffBuiltInManager implements BffEngine Map actions = getAllActions(); if (!actions.containsKey(actionCode)) { - String[] messageParams = new String[]{vo.getCode(), actionCode}; - throw new BffEngineException(com.inspur.edp.bff.engine.api.exception.ErrorCodes.BFF_ENGINE_1018, messageParams); + String[] messageParams = new String[]{vo.getName(), actionCode}; + throw new BffEngineCoreException(BffEngineCoreErrorCodes.GSP_BFF_ENGINE_1018, messageParams); } ViewModelAction action = actions.get(actionCode); @@ -584,8 +578,7 @@ public class BffEngineManagerImpl extends BffBuiltInManager implements BffEngine AbstractFSAction actionInstance = (AbstractFSAction) BffEngineAssemblerBase.getActionInstance(vo, action, new ArrayList<>(), new ArrayList<>(), params); return getBffContext().executeAction(actionInstance, action.getID(), action.getCode(), params, action.getIsAutoSave());//action.getIsAutoSave()); default: - String[] messageParams = new String[]{vo.getCode(), actionCode}; - throw new BffEngineException(com.inspur.edp.bff.engine.api.exception.ErrorCodes.BFF_ENGINE_1019, messageParams); + throw new BffEngineCoreException(BffEngineCoreErrorCodes.GSP_BFF_ENGINE_1019, vo.getName(),vo.getCode(),vo.getID(),String.valueOf(action.getType()),actionCode); } } @@ -618,7 +611,7 @@ public class BffEngineManagerImpl extends BffBuiltInManager implements BffEngine JsonNode dataNode = mapper.readValue(dataStr, JsonNode.class); array.add(dataNode); } catch (IOException e) { - throw new BffEngineException(e, com.inspur.edp.bff.engine.api.exception.ErrorCodes.BFF_ENGINE_1020); + throw new BffEngineCoreException(e, BffEngineCoreErrorCodes.GSP_BFF_ENGINE_1020,e.getMessage()); } } node.put("Result", array); @@ -644,7 +637,7 @@ public class BffEngineManagerImpl extends BffBuiltInManager implements BffEngine try { return filterResponseJson(mapper.writeValueAsString(responseInfo), responseInfo, context); } catch (JsonProcessingException e) { - throw new BffEngineException(e, com.inspur.edp.bff.engine.api.exception.ErrorCodes.BFF_ENGINE_1021); + throw new BffEngineCoreException(e, BffEngineCoreErrorCodes.GSP_BFF_ENGINE_1021,e.getMessage()); } } @@ -694,8 +687,8 @@ public class BffEngineManagerImpl extends BffBuiltInManager implements BffEngine DevBasicBoInfo devBasicBoInfo = SpringBeanUtils.getBean(DevBasicInfoService.class) .getDevBasicBoInfo(metadata.getHeader().getBizobjectID()); if (devBasicBoInfo == null) { - String[] messageParams = new String[]{vo.getId(), vo.getCode(), vo.getName(), metadata.getHeader().getBizobjectID()}; - throw new BffEngineException(com.inspur.edp.bff.engine.api.exception.ErrorCodes.BFF_ENGINE_1022, messageParams); + String[] messageParams = new String[]{vo.getName(),vo.getCode(), vo.getID(), metadata.getHeader().getBizobjectID()}; + throw new BffEngineCoreException(BffEngineCoreErrorCodes.GSP_BFF_ENGINE_1022, messageParams); } su = devBasicBoInfo.getSuCode(); CommonModelExtension.setSUCode(vo, su); diff --git a/bff-engine-core/src/main/java/com/inspur/edp/bff/engine/core/action/BffEngineAssemblerBase.java b/bff-engine-core/src/main/java/com/inspur/edp/bff/engine/core/action/BffEngineAssemblerBase.java index 03df90eecc9e4b5efd0906d94514622b17dcbb7d..2df27fdb8d65f247952549706c918c1122d236b1 100644 --- a/bff-engine-core/src/main/java/com/inspur/edp/bff/engine/core/action/BffEngineAssemblerBase.java +++ b/bff-engine-core/src/main/java/com/inspur/edp/bff/engine/core/action/BffEngineAssemblerBase.java @@ -20,8 +20,8 @@ import com.fasterxml.jackson.databind.JavaType; import com.fasterxml.jackson.databind.ObjectMapper; import com.inspur.edp.bef.component.detailcmpentity.vm.VMComponent; import com.inspur.edp.bef.component.detailcmpentity.vm.VMMethod; -import com.inspur.edp.bff.engine.api.exception.BffEngineException; -import com.inspur.edp.bff.engine.api.exception.ErrorCodes; +import com.inspur.edp.bff.engine.core.exception.BffEngineCoreException; +import com.inspur.edp.bff.engine.core.exception.BffEngineCoreErrorCodes; import com.inspur.edp.bff.engine.core.common.VoActionUtil; import com.inspur.edp.cdf.component.api.service.ComponentInvokeService; import com.inspur.edp.common.component.workflow.dto.ApprovePayload; @@ -39,8 +39,6 @@ import lombok.var; import sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl; import java.io.IOException; -import java.lang.reflect.Constructor; -import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Type; import java.math.BigDecimal; import java.text.ParseException; @@ -94,7 +92,7 @@ public class BffEngineAssemblerBase { return componentInvokeService.getInstance(((MappedCdpActionBase)action).getComponentEntityId(), params); //return constructor.newInstance(params.toArray()); } catch (Exception e) { - throw new BffEngineException(e,ErrorCodes.BFF_ENGINE_1001,action.getCode()); + throw new BffEngineCoreException(e, BffEngineCoreErrorCodes.GSP_BFF_ENGINE_1001,action.getName()); } } @@ -132,7 +130,7 @@ public class BffEngineAssemblerBase { return componentInvokeService.getInstance(mappedCdpAction.getComponentEntityId(), params); //return constructor.newInstance(params.toArray()); } catch (Exception e) { - throw new BffEngineException(e,ErrorCodes.BFF_ENGINE_1001,action.getCode()); + throw new BffEngineCoreException(e, BffEngineCoreErrorCodes.GSP_BFF_ENGINE_1001,action.getName()); } } @@ -159,8 +157,8 @@ public class BffEngineAssemblerBase { MappedCdpAction mappedCdpAction = (MappedCdpAction) action; VMComponent compMetadata = CMEngineUtil.getMetadataContent(mappedCdpAction.getComponentEntityId()); if (compMetadata == null) { - String[] messageParams = new String[]{ mappedCdpAction.getCode() , mappedCdpAction.getComponentEntityId()}; - throw new BffEngineException(ErrorCodes.BFF_ENGINE_1003,messageParams); + String[] messageParams = new String[]{ mappedCdpAction.getName() , mappedCdpAction.getComponentEntityId()}; + throw new BffEngineCoreException(BffEngineCoreErrorCodes.GSP_BFF_ENGINE_1003,messageParams); } VMMethod method = compMetadata.getVmMethod(); return method.getClassName(); @@ -211,7 +209,7 @@ public class BffEngineAssemblerBase { realValue = new ObjectMapper().readValue(value, String[].class); } catch (IOException e) { - throw new BffEngineException(e,ErrorCodes.BFF_ENGINE_1004,value); + throw new BffEngineCoreException(e, BffEngineCoreErrorCodes.GSP_BFF_ENGINE_1004,value); } } else if (parameter.getCollectionParameterType() == VMCollectionParameterType.List) { ObjectMapper mapper = new ObjectMapper(); @@ -219,7 +217,7 @@ public class BffEngineAssemblerBase { try { realValue = mapper.readValue(value, javaType); } catch (IOException e) { - throw new BffEngineException(e,ErrorCodes.BFF_ENGINE_1005,value); + throw new BffEngineCoreException(e, BffEngineCoreErrorCodes.GSP_BFF_ENGINE_1005,value); } } else { realValue = value; @@ -228,19 +226,19 @@ public class BffEngineAssemblerBase { break; case Custom: if (parameter.getClassName() == null || "".equals(parameter.getClassName())) { - throw new BffEngineException(ErrorCodes.BFF_ENGINE_1006,parameter.getParamName()); + throw new BffEngineCoreException(BffEngineCoreErrorCodes.GSP_BFF_ENGINE_1006,parameter.getParamName()); } try { Class baseType = Class.forName(parameter.getClassName()); realValue = new ObjectMapper().readValue(value, baseType); } catch (ClassNotFoundException e) { - throw new BffEngineException(e,ErrorCodes.BFF_ENGINE_1007,parameter.getClassName()); + throw new BffEngineCoreException(e, BffEngineCoreErrorCodes.GSP_BFF_ENGINE_1007,parameter.getParamName(),parameter.getClassName()); } catch (IOException e) { - throw new BffEngineException(e,ErrorCodes.BFF_ENGINE_1008,parameter.getClassName()); + throw new BffEngineCoreException(e, BffEngineCoreErrorCodes.GSP_BFF_ENGINE_1008,parameter.getParamName(),parameter.getClassName(),e.getMessage()); } break; default: - throw new BffEngineException(); + throw new IllegalArgumentException(String.valueOf(parameter.getParameterType())); } return realValue; @@ -254,7 +252,7 @@ public class BffEngineAssemblerBase { try { return sDateFormat.parse(value); } catch (ParseException var4) { - throw new BffEngineException(ErrorCodes.BFF_ENGINE_1009,value); + throw new BffEngineCoreException(var4,BffEngineCoreErrorCodes.GSP_BFF_ENGINE_1009,value,var4.getMessage()); } } else { return null; @@ -288,12 +286,12 @@ public class BffEngineAssemblerBase { break; case Custom: if (parameter.getClassName() == null || "".equals(parameter.getClassName())) { - throw new BffEngineException(ErrorCodes.BFF_ENGINE_1006,parameter.getParamName()); + throw new BffEngineCoreException(BffEngineCoreErrorCodes.GSP_BFF_ENGINE_1006,parameter.getParamName()); } baseTypeName = parameter.getClassName(); break; default: - throw new BffEngineException(); + throw new IllegalArgumentException(String.valueOf(parameter.getParameterType())); } @@ -304,7 +302,7 @@ public class BffEngineAssemblerBase { try { baseType = Class.forName(baseTypeName); } catch (ClassNotFoundException e) { - throw new BffEngineException(e,ErrorCodes.BFF_ENGINE_1007,parameter.getClassName()); + throw new BffEngineCoreException(e, BffEngineCoreErrorCodes.GSP_BFF_ENGINE_1007,parameter.getParamName(),parameter.getClassName()); } if (parameter.getCollectionParameterType() == VMCollectionParameterType.List) { @@ -349,12 +347,12 @@ public class BffEngineAssemblerBase { break; case Custom: if (parameter.getClassName() == null || "".equals(parameter.getClassName())) { - throw new BffEngineException(ErrorCodes.BFF_ENGINE_1006,parameter.getParamName()); + throw new BffEngineCoreException(BffEngineCoreErrorCodes.GSP_BFF_ENGINE_1006,parameter.getParamName()); } baseTypeName = parameter.getClassName(); break; default: - throw new BffEngineException(); + throw new IllegalArgumentException(String.valueOf(parameter.getParameterType())); } @@ -365,7 +363,7 @@ public class BffEngineAssemblerBase { try { baseType = Class.forName(baseTypeName); } catch (ClassNotFoundException e) { - throw new BffEngineException(e, ErrorCodes.BFF_ENGINE_1007, parameter.getClassName()); + throw new BffEngineCoreException(e, BffEngineCoreErrorCodes.GSP_BFF_ENGINE_1007, parameter.getParamName(),parameter.getClassName()); } if (parameter.getCollectionParameterType() == VMCollectionParameterType.List) { diff --git a/bff-engine-core/src/main/java/com/inspur/edp/bff/engine/core/common/VoActionUtil.java b/bff-engine-core/src/main/java/com/inspur/edp/bff/engine/core/common/VoActionUtil.java index bd08dca63a9870706f85425ab8f9103ae4e18896..c7fe49eec5a7ff2ea3a0f77f41a2c9dd18d45f9f 100644 --- a/bff-engine-core/src/main/java/com/inspur/edp/bff/engine/core/common/VoActionUtil.java +++ b/bff-engine-core/src/main/java/com/inspur/edp/bff/engine/core/common/VoActionUtil.java @@ -16,15 +16,14 @@ package com.inspur.edp.bff.engine.core.common; -import com.inspur.edp.bff.engine.api.exception.BffEngineException; -import com.inspur.edp.bff.engine.api.exception.ErrorCodes; +import com.inspur.edp.bff.engine.core.exception.BffEngineCoreException; +import com.inspur.edp.bff.engine.core.exception.BffEngineCoreErrorCodes; import com.inspur.edp.formserver.viewmodel.GspViewModel; import com.inspur.edp.formserver.viewmodel.GspViewModelElement; import com.inspur.edp.formserver.viewmodel.GspViewObject; import java.util.HashMap; import java.util.List; -import java.util.Objects; public class VoActionUtil { private static HashMap compMap = new HashMap<>();//VO元数据和UDT对应关系 @@ -62,14 +61,13 @@ public class VoActionUtil { if (nodeCode == null || !vo.getNodesDic().containsKey(nodeCode) || vo.getMainObject().getCode().equalsIgnoreCase(nodeCode)) { List voMainObe = vo.getMainObject().getElements(n -> n.getIsUdt() && n.getUdtID().equals(compMap.get(componentId))); if (voMainObe == null || voMainObe.size() == 0) { - throw new BffEngineException(ErrorCodes.BFF_ENGINE_1039, compMap.get(componentId)); + throw new BffEngineCoreException(BffEngineCoreErrorCodes.GSP_BFF_ENGINE_1039,vo.getName(),vo.getMainObject().getName(),compMap.get(componentId)); } return voMainObe.get(0).getLabelID(); } GspViewObject childObj = vo.getNode(n -> n.getCode().equalsIgnoreCase(nodeCode)); if (childObj == null) { - String[] msg = new String[]{nodeCode, compMap.get(componentId)}; - throw new BffEngineException(ErrorCodes.BFF_ENGINE_1040, msg); + throw new BffEngineCoreException(BffEngineCoreErrorCodes.GSP_BFF_ENGINE_1040, vo.getName(),nodeCode); } return childObj.getElements(n -> n.getIsUdt() && n.getUdtID().equals(compMap.get(componentId))).get(0).getLabelID(); } diff --git a/bff-engine-core/src/main/java/com/inspur/edp/bff/engine/core/exception/BffEngineCoreErrorCodes.java b/bff-engine-core/src/main/java/com/inspur/edp/bff/engine/core/exception/BffEngineCoreErrorCodes.java new file mode 100644 index 0000000000000000000000000000000000000000..8ffb2f5ad6ae5d4323e761aba82a0d3fcac1b668 --- /dev/null +++ b/bff-engine-core/src/main/java/com/inspur/edp/bff/engine/core/exception/BffEngineCoreErrorCodes.java @@ -0,0 +1,176 @@ +package com.inspur.edp.bff.engine.core.exception; + +public enum BffEngineCoreErrorCodes { + /** + * 视图对象元数据上的视图对象操作或者扩展操作或者业务对象映射操作[{0}]实例化失败 + */ + GSP_BFF_ENGINE_1001, + /** + * 新增子对象数据时,视图对象[{0}]上未找到编号为[{1}]的对象信息,请检查 + */ + GSP_BFF_ENGINE_1002, + /** + * 初始化视图对象上的操作[{0}]时,未获取到当前操作对应的构件元数据[ID:{1}]信息,请更新该操作引用的构件元数据 + */ + GSP_BFF_ENGINE_1003, + /** + * 初始化视图对象操作的文本数组参数[{0}]时发生异常 + */ + GSP_BFF_ENGINE_1004, + /** + * 初始化视图对象操作的文本列表参数[{0}]时发生异常 + */ + GSP_BFF_ENGINE_1005, + /** + * 视图对象上的操作参数类型为自定义类型时,参数[{0}]的类名称不能为空,请联系管理员或者开发人员更新视图对象元数据的参数信息 + */ + GSP_BFF_ENGINE_1006, + /** + * 视图对象上的操作自定义类型的参数[{0}]对应的类[{1}]初始化时,未加载到该类,请联系管理员或者开发人员确认该类是否存在 + */ + GSP_BFF_ENGINE_1007, + /** + * 视图对象上的操作自定义类型的参数[{0}]对应的类[{1}]序列化时发生异常:{2} + */ + GSP_BFF_ENGINE_1008, + /** + * 解析视图对象操作上时间类型参数的值[{0}]时异常:{1} + */ + GSP_BFF_ENGINE_1009, + /** + * 关联字段[{0}]设置的值[{1}]类型不对,请重新设置关联字段以及带出字段的值 + */ + GSP_BFF_ENGINE_1010, + /** + * 视图对象变更集转换为业务实体变更集时,关联字段[{0}]对应的值[{1}]克隆失败 + */ + GSP_BFF_ENGINE_1011, + /** + * 初始化视图对象上对象[{0}]的变更集转换器时,未获取到当前引用的对象[ID:{1}]信息。可能的原因是业务实体修改后未发布或未同步视图对象,请检查 + */ + GSP_BFF_ENGINE_1012, + /** + * 视图对象[Name:{0}、Code:{1}、ID:{2}]上不存在[{3}]的帮助配置信息,请重新保存当前视图对象对应的表单更新帮助信息 + */ + GSP_BFF_ENGINE_1013, + /** + * 视图对象[Name:{0}、Code:{1}、ID:{2}]上未匹配到对象编号[{3}]和帮助字段标签[{4}]对应的帮助配置信息,请重新保存当前视图对象对应的表单更新帮助信息 + */ + GSP_BFF_ENGINE_1014, + /** + * 解析帮助联动配置信息时,视图对象[{0}]上未匹配到编号为[{1}]的对象,请重新确认配置帮助联动信息 + */ + GSP_BFF_ENGINE_1015, + /** + * 帮助联动配置的帮助[Name:{0}、COde:{1}、ID:{2}]元数据上记录的视图对象数据源信息VoSourceId为空,请更新后重新发布帮助元数 + */ + GSP_BFF_ENGINE_1016, + /** + * 帮助联动配置不支持[{0}]的帮助级联类型 + */ + GSP_BFF_ENGINE_1017, + /** + * 视图对象[{0}]上不存在编号为[{1}]的操作,请检查 + */ + GSP_BFF_ENGINE_1018, + /** + * executeCustomAction方法目前只支持视图对象上[Name:{0}、Code:{1}、ID:{2}]操作类型为BEAction以及VOAction的操作,暂不支持类型为[{3}]的操作[{4} + */ + GSP_BFF_ENGINE_1019, + /** + * 查询数据结果QueryResult实体类序列化异常:{0} + */ + GSP_BFF_ENGINE_1020, + /** + * 请求返回结果ResponseInfo实体类序列化异常:{0} + */ + GSP_BFF_ENGINE_1021, + /** + * 视图对象[Name:{0}、Code:{1}、ID:{2}]元数据所属的业务对象[{3}]不存在,请检查 + */ + GSP_BFF_ENGINE_1022, + /** + * 业务字段[Name:{0}、ID:{1}]元数据未获取到,请更新该业务字段元数据 + */ + GSP_BFF_ENGINE_1023, + /** + * 业务字段[{0}]上未获取到字段[{1}]:业务实体[{2}]中对象[{3}]上的字段[{4}]引用了该字段。可能的原因是业务实体修改后未发布或未同步视图对象,请检查 + */ + GSP_BFF_ENGINE_1024, + /** + * 业务实体[{0}]上未找到字段[{1}]:视图对象[{2}]中对象[{3}]上的字段[{4}]引用了该字段。可能的原因是业务实体修改后未发布或未同步视图对象,请检查 + */ + GSP_BFF_ENGINE_1025, + /** + * 业务实体[{0}]上未找到关联引用字段[{1}]:视图对象[{2}]中对象[{3}]上的关联引用字段[{4}]引用了该字段。可能的原因是业务实体修改后未发布或未同步视图对象,请检查 + */ + GSP_BFF_ENGINE_1026, + /** + * 视图对象[{0}]字段[{1}]引用的业务实体对象信息为空,请检查 + */ + GSP_BFF_ENGINE_1027, + /** + * 业务实体[{0}]中未找到对象[{1}];视图对象[{2}]中对象[{3}]上字段[{4}]引用了该对象。可能的原因是业务实体修改后未发布或未同步视图对象,请检 + */ + GSP_BFF_ENGINE_1028, + /** + * 视图对象[{0}]上对象[{1}]的字段[{2}]是关联类型的字段,但是没有设置关联引用字段,请重新设置关联 + */ + GSP_BFF_ENGINE_1029, + /** + * 反射调用[{0}]上的getValue方法获取对象[{1}]上关联带出字段[{2}]对应的值时发生异常:{3} + */ + GSP_BFF_ENGINE_1030, + /** + * 反射调用[{0}]上的getValue方法获取对象[{1}]上字段[{2}]对应的值时发生异常:{3 + */ + GSP_BFF_ENGINE_1031, + /** + * 视图对象[{0}]中对象[{1}]记录的业务实体对象[ID:{2}]信息,在业务实体对象[Name:{3}、Code:{4}]不存在。可能的原因是业务实体修改后未发布或未同步视图对象,请检查 + */ + GSP_BFF_ENGINE_1032, + /** + * 视图对象[{0}]上对象[{1}]上字段[{2}]引用的的业务实体字段[{3}]在业务实体[{4}]的对象[{5}]上不存在。可能的原因是业务实体修改后未发布或未同步视图对象,请检查 + */ + GSP_BFF_ENGINE_1033, + /** + * 初始化视图对象服务接口时,传入的参数[metadataId]不能为空,请检查 + */ + GSP_BFF_ENGINE_1034, + /** + * 初始化视图对象[ID:{0}]服务接口时,未获取到元数据信息,请联系管理员或者开发人员更新该元数据 + */ + GSP_BFF_ENGINE_1035, + /** + * 初始化视图对象[ID:{0}]服务接口时,未获取到该元数据信息的Content内容,请检 + */ + GSP_BFF_ENGINE_1036, + /** + * 初始化视图对象[{0}]和视图对象记录的业务实体信息时,未获取到当前视图对象记录的ID为[{1}]业务实体元数据,请联系管理员或者开发人员更新业务实体元数据 + */ + GSP_BFF_ENGINE_1037, + /** + * 视图对象[{0}]上解析帮助配置[{1}]时,未获取到ID为[{2}]帮助元数据,请联系管理员或者开发人员更新该帮助元数据 + */ + GSP_BFF_ENGINE_1038, + /** + * 视图对象[{0}]的对象[{1}]上未找到元数据ID为:[{2}]的业务字段元数据,请检查 + */ + GSP_BFF_ENGINE_1039, + /** + * 视图对象[{0}]上未获取到到编号为:[{1}]的对象,请检查 + */ + GSP_BFF_ENGINE_1040, + /** + * 业务实体[{0}]中对象[{1}]上字段[{2}]引用的业务字段[{3}]元数据上的字段[{4}]未获取到,请重新选择业务字段更新业务实体信息 + */ + GSP_BFF_ENGINE_1041, + /** + * 视图对象[Name:{0}、Code:{1}、ID:{2}]上不存在编号为[{3}]的视图对象操作,请检查元数据 + */ + GSP_BFF_ENGINE_1042, + /** + * 根据对象数据获取对象实际编号时,传入的类型为[{0}]的对象数据暂不支持 + */ + GSP_BFF_ENGINE_2001 +} diff --git a/bff-engine-core/src/main/java/com/inspur/edp/bff/engine/core/exception/BffEngineCoreException.java b/bff-engine-core/src/main/java/com/inspur/edp/bff/engine/core/exception/BffEngineCoreException.java new file mode 100644 index 0000000000000000000000000000000000000000..96efd5341b8999d4a2a74defddd672dc35a3b593 --- /dev/null +++ b/bff-engine-core/src/main/java/com/inspur/edp/bff/engine/core/exception/BffEngineCoreException.java @@ -0,0 +1,35 @@ +package com.inspur.edp.bff.engine.core.exception; + +import io.iec.edp.caf.commons.exception.CAFRuntimeException; +import io.iec.edp.caf.commons.exception.ExceptionLevel; + +public class BffEngineCoreException extends CAFRuntimeException{ + public static final String SU = "pfcommon"; + public static final String RESOURCE_FILE = "bff_engine_exception.properties"; + + public BffEngineCoreException(Throwable innerException) { + super(SU, "", "", (Exception) innerException); + } + + public BffEngineCoreException(BffEngineCoreErrorCodes errCodes) { + super(SU, RESOURCE_FILE, errCodes.name(), null, null, ExceptionLevel.Error, true); + } + + public BffEngineCoreException(BffEngineCoreErrorCodes errCodes, String... messageParams) { + super(SU, RESOURCE_FILE, errCodes.name(), messageParams, null, ExceptionLevel.Error, false); + } + public BffEngineCoreException(BffEngineCoreErrorCodes errCodes, boolean bizException, String... messageParams) { + super(SU, RESOURCE_FILE, errCodes.name(), messageParams, null, ExceptionLevel.Error, bizException); + } + public BffEngineCoreException(Throwable innerException, BffEngineCoreErrorCodes errCodes, String... messageParams) { + super(SU, RESOURCE_FILE, errCodes.name(), messageParams, (Exception) innerException, ExceptionLevel.Error, false); + } + + public BffEngineCoreException(String SUCode, BffEngineCoreErrorCodes errCodes, String... messageParams) { + super(SUCode, RESOURCE_FILE, errCodes.name(), messageParams, null, ExceptionLevel.Error, false); + } + + public BffEngineCoreException(BffEngineCoreErrorCodes errCodes, String message, Exception innerException) { + super(SU, errCodes.name(), message, innerException, ExceptionLevel.Error, false); + } +} diff --git a/bff-engine-core/src/main/java/com/inspur/edp/bff/engine/core/filter/BffEngineFilterConvertor.java b/bff-engine-core/src/main/java/com/inspur/edp/bff/engine/core/filter/BffEngineFilterConvertor.java index 4aa38e6f47f6d8c9c5edbce26fb7032472658bf9..f5beac39a39a38970cb75ea3081410dbb3e9ddbd 100644 --- a/bff-engine-core/src/main/java/com/inspur/edp/bff/engine/core/filter/BffEngineFilterConvertor.java +++ b/bff-engine-core/src/main/java/com/inspur/edp/bff/engine/core/filter/BffEngineFilterConvertor.java @@ -18,8 +18,8 @@ package com.inspur.edp.bff.engine.core.filter; import com.inspur.edp.bef.bizentity.GspBusinessEntity; import com.inspur.edp.bff.api.dataprocessor.IFilterFieldConvertor; -import com.inspur.edp.bff.engine.api.exception.BffEngineException; -import com.inspur.edp.bff.engine.api.exception.ErrorCodes; +import com.inspur.edp.bff.engine.core.exception.BffEngineCoreException; +import com.inspur.edp.bff.engine.core.exception.BffEngineCoreErrorCodes; import com.inspur.edp.cef.designtime.api.IGspCommonField; import com.inspur.edp.cef.designtime.api.element.GspAssociation; import com.inspur.edp.cef.spi.jsonser.base.StringUtils; @@ -28,8 +28,6 @@ import com.inspur.edp.das.commonmodel.IGspCommonElement; import com.inspur.edp.das.commonmodel.IGspCommonObject; import com.inspur.edp.formserver.viewmodel.GspViewModel; import com.inspur.edp.formserver.viewmodel.GspViewModelElement; -import com.inspur.edp.formserver.viewmodel.GspViewObject; -import com.inspur.edp.lcm.metadata.api.entity.GspMetadata; import com.inspur.edp.metadata.rtcustomization.api.CustomizationRtService; import com.inspur.edp.udt.designtime.api.entity.ComplexDataTypeDef; import com.inspur.edp.udt.designtime.api.entity.SimpleDataTypeDef; @@ -77,8 +75,7 @@ public class BffEngineFilterConvertor implements IFilterFieldConvertor { private void initUdtElement(IGspCommonField voElement, String parentLabel, String returnValue) { UnifiedDataTypeDef udt = CMEngineUtil.getMetadataContent(voElement.getUdtID()); if(udt==null){ - String[] msg = new String[]{voElement.getUdtID(), voElement.getUdtName()}; - throw new BffEngineException(ErrorCodes.BFF_ENGINE_1023,msg); + throw new BffEngineCoreException(BffEngineCoreErrorCodes.GSP_BFF_ENGINE_1023, voElement.getUdtName(),voElement.getUdtID()); } if (udt != null && udt instanceof SimpleDataTypeDef) { initUdtElement(voElement, @@ -98,18 +95,21 @@ public class BffEngineFilterConvertor implements IFilterFieldConvertor { IGspCommonField beElement = getBeElement( (GspViewModelElement) ((voElement instanceof GspViewModelElement) ? voElement : null)); if (beElement == null) { - throw new BffEngineException(ErrorCodes.BFF_ENGINE_0004,voElement.getLabelID()); + GspViewModelElement viewModelElement= (GspViewModelElement) voElement; + String viewObject= voElement.getBelongObject()==null ?"":viewModelElement.getBelongObject().getName(); + throw new BffEngineCoreException(BffEngineCoreErrorCodes.GSP_BFF_ENGINE_1025,be.getName(),viewModelElement.getMapping().getTargetElementId(),vo.getName(),viewObject,voElement.getName()); } for (var mapping : beElement.getMappingRelation()) { var beChildEleId = mapping.getKeyInfo(); var udtEleId = mapping.getValueInfo(); IGspCommonField beChildElement = getBeChildElement(beElement, beChildEleId); - + String beObject=beElement.getBelongObject()==null ?"":beElement.getBelongObject().getName(); + if (beChildElement == null) + throw new BffEngineCoreException(BffEngineCoreErrorCodes.GSP_BFF_ENGINE_1041,be.getName(),beObject,beElement.getName(),udt.getName(),beChildEleId); var udtElement = udt.findElement(udtEleId); - if (beChildElement == null || udtElement == null) { - String[] msg = new String[]{vo.getMainObject().getBelongModel().getCode(), udt.getCode()}; - throw new BffEngineException(ErrorCodes.BFF_ENGINE_1024,msg); + if ( udtElement == null) { + throw new BffEngineCoreException(BffEngineCoreErrorCodes.GSP_BFF_ENGINE_1024,udt.getName(),udtEleId,be.getName(),beObject,beElement.getName()); } buildUdtElementSection(voElement, udtElement, beChildElement, udt); } @@ -143,7 +143,9 @@ public class BffEngineFilterConvertor implements IFilterFieldConvertor { IGspCommonField beElement = getBeElement( (GspViewModelElement) ((voElement instanceof GspViewModelElement) ? voElement : null)); if (beElement == null) { - throw new BffEngineException(ErrorCodes.BFF_ENGINE_0004,voElement.getLabelID()); + GspViewModelElement viewModelElement= (GspViewModelElement) voElement; + String viewObject= voElement.getBelongObject()==null ?"":viewModelElement.getBelongObject().getName(); + throw new BffEngineCoreException(BffEngineCoreErrorCodes.GSP_BFF_ENGINE_1025,be.getName(),viewModelElement.getMapping().getTargetElementId(),vo.getName(),viewObject,voElement.getName()); } var value = isNullOrEmpty(returnValue) ? beElement.getLabelID() : returnValue; @@ -165,8 +167,9 @@ public class BffEngineFilterConvertor implements IFilterFieldConvertor { IGspCommonField beElement = getBeElement( (GspViewModelElement) ((refElement instanceof GspViewModelElement) ? refElement : null)); if (beElement == null) { - String[] msg = new String[]{((GspViewObject) voElement.getBelongObject()).getBelongModel().getCode(), voElement.getLabelID(), refElement.getLabelID()}; - throw new BffEngineException(ErrorCodes.BFF_ENGINE_1025,msg); + GspViewModelElement viewModelElement= (GspViewModelElement) refElement; + String viewObject=voElement.getBelongObject()==null?"":voElement.getBelongObject().getName(); + throw new BffEngineCoreException(BffEngineCoreErrorCodes.GSP_BFF_ENGINE_1025,be.getName(),viewModelElement.getMapping().getTargetElementId(),vo.getName(),viewObject,viewModelElement.getName()); } IGspCommonField udtRefElement = getUdtRefElement(refElement, udtAsso); var childValue = isNullOrEmpty(returnValue) ? beElement.getLabelID() : returnValue; @@ -205,8 +208,9 @@ public class BffEngineFilterConvertor implements IFilterFieldConvertor { (GspViewModelElement) ((refElement instanceof GspViewModelElement) ? refElement : null)); if(beElement == null) { - String[] msg = new String[]{refElement.getLabelID(), ((GspViewModelElement)refElement).getMapping().getTargetElementId()}; - throw new BffEngineException(ErrorCodes.BFF_ENGINE_1026,msg); + GspViewModelElement viewModelElement= (GspViewModelElement) refElement; + String viewObject=voElement.getBelongObject()==null?"":voElement.getBelongObject().getName(); + throw new BffEngineCoreException(BffEngineCoreErrorCodes.GSP_BFF_ENGINE_1026,be.getName(),viewModelElement.getMapping().getTargetElementId(),vo.getName(),viewObject,viewModelElement.getName()); } var childValue = isNullOrEmpty(returnValue) ? beElement.getLabelID() : returnValue; var childLabel = isNullOrEmpty(parentLabel) ? refElement.getLabelID() : parentLabel; @@ -236,7 +240,7 @@ public class BffEngineFilterConvertor implements IFilterFieldConvertor { var objId = voElement.getMapping().getTargetObjectId(); if (objId == null || "".equals(objId)) { - throw new BffEngineException(ErrorCodes.BFF_ENGINE_1027, voElement.getCode()); + throw new BffEngineCoreException(BffEngineCoreErrorCodes.GSP_BFF_ENGINE_1027, this.vo.getName(),voElement.getName()); } if (objId.equals(be.getMainObject().getID())) { return getBeElemet(voElement, be.getMainObject()); @@ -253,8 +257,8 @@ public class BffEngineFilterConvertor implements IFilterFieldConvertor { var beObj = elementBelongBe.findObjectById(objId); if (beObj == null) { - String[] msg = new String[]{be.getCode(), objId, voElement.getBelongObject().getCode()}; - throw new BffEngineException(ErrorCodes.BFF_ENGINE_1028, msg); + String viewObject=voElement.getBelongObject()==null?"":voElement.getBelongObject().getName(); + throw new BffEngineCoreException(BffEngineCoreErrorCodes.GSP_BFF_ENGINE_1028,be.getName(),objId,vo.getName(),viewObject,vo.getName()); } return getBeElemet(voElement, beObj); } diff --git a/bff-engine-core/src/main/java/com/inspur/edp/bff/engine/entity/convertor/BffEngineChangeConvertor.java b/bff-engine-core/src/main/java/com/inspur/edp/bff/engine/entity/convertor/BffEngineChangeConvertor.java index 93686295a5b782b5b0a0f99a07dd0446e26f77a6..55f3a4ba2ce5b3669570da736dc44923856a490c 100644 --- a/bff-engine-core/src/main/java/com/inspur/edp/bff/engine/entity/convertor/BffEngineChangeConvertor.java +++ b/bff-engine-core/src/main/java/com/inspur/edp/bff/engine/entity/convertor/BffEngineChangeConvertor.java @@ -18,8 +18,8 @@ package com.inspur.edp.bff.engine.entity.convertor; import com.inspur.edp.bef.bizentity.GspBizEntityObject; import com.inspur.edp.bff.api.manager.IFSManagerContext; -import com.inspur.edp.bff.engine.api.exception.BffEngineException; -import com.inspur.edp.bff.engine.api.exception.ErrorCodes; +import com.inspur.edp.bff.engine.core.exception.BffEngineCoreException; +import com.inspur.edp.bff.engine.core.exception.BffEngineCoreErrorCodes; import com.inspur.edp.bff.spi.AbstractChangeConvertor; import com.inspur.edp.cef.designtime.api.IGspCommonField; import com.inspur.edp.cef.designtime.api.element.GspElementObjectType; @@ -92,10 +92,10 @@ public class BffEngineChangeConvertor extends AbstractChangeConvertor { try { return ((AssociationInfo) value).clone(); } catch (CloneNotSupportedException e) { - throw new BffEngineException(e); + throw new BffEngineCoreException(e, BffEngineCoreErrorCodes.GSP_BFF_ENGINE_1011, sourceEle.getName(),value.getClass().getName()); } } - throw new BffEngineException(ErrorCodes.BFF_ENGINE_1010); + throw new BffEngineCoreException(BffEngineCoreErrorCodes.GSP_BFF_ENGINE_1010,sourceEle.getName(),value.getClass().getName()); } else if (sourceEle.getObjectType() == GspElementObjectType.Enum) { if (value == null) return value; @@ -123,7 +123,7 @@ public class BffEngineChangeConvertor extends AbstractChangeConvertor { return value == null ? null : ((com.inspur.edp.commonmodel.engine.api.data.AssociationInfo) value).clone(); } catch (CloneNotSupportedException e) { - throw new BffEngineException(e, ErrorCodes.BFF_ENGINE_1011, sourceEle.getLabelID()); + throw new BffEngineCoreException(e, BffEngineCoreErrorCodes.GSP_BFF_ENGINE_1011, sourceEle.getName(),value.getClass().getName()); } } else if (sourceEle.getObjectType() == GspElementObjectType.Enum) { if (_mgrContext.getLcp().getClass().getSimpleName().equals("EngineStandardLcp") == false) { @@ -178,8 +178,7 @@ public class BffEngineChangeConvertor extends AbstractChangeConvertor { String beChildObjId = childObj.getMapping().getTargetObjId(); var beChildObj = beObject.getChildObjectById(beChildObjId); if (beChildObj == null) { - String[] messageParams = new String[]{ childObj.getCode() ,beChildObjId}; - throw new BffEngineException(ErrorCodes.BFF_ENGINE_1012, messageParams); + throw new BffEngineCoreException(BffEngineCoreErrorCodes.GSP_BFF_ENGINE_1012, childCode,beChildObjId); } return new BffEngineChangeConvertor(getMgrContext(), childObj, (GspBizEntityObject) beChildObj); } diff --git a/bff-engine-core/src/main/java/com/inspur/edp/bff/engine/entity/convertor/BffEngineDataConvertor.java b/bff-engine-core/src/main/java/com/inspur/edp/bff/engine/entity/convertor/BffEngineDataConvertor.java index b58a90211d9b53092d708061b3c12beda73d1e8a..177113a4e71707cd6267d54c1c9c881551dba4ab 100644 --- a/bff-engine-core/src/main/java/com/inspur/edp/bff/engine/entity/convertor/BffEngineDataConvertor.java +++ b/bff-engine-core/src/main/java/com/inspur/edp/bff/engine/entity/convertor/BffEngineDataConvertor.java @@ -17,8 +17,8 @@ package com.inspur.edp.bff.engine.entity.convertor; import com.inspur.edp.bef.bizentity.GspBizEntityObject; -import com.inspur.edp.bff.engine.api.exception.BffEngineException; -import com.inspur.edp.bff.engine.api.exception.ErrorCodes; +import com.inspur.edp.bff.engine.core.exception.BffEngineCoreException; +import com.inspur.edp.bff.engine.core.exception.BffEngineCoreErrorCodes; import com.inspur.edp.bff.spi.AbstractDataConvertor; import com.inspur.edp.cef.designtime.api.element.GspElementObjectType; import com.inspur.edp.cef.entity.entity.AssoInfoBase; @@ -77,8 +77,10 @@ public class BffEngineDataConvertor extends AbstractDataConvertor { if(value == null){ return null; } + //获取模型名称 + String modelName=voObject.getBelongModel()==null?"":voObject.getBelongModel().getName(); if(targetEle.getChildAssociations() == null || targetEle.getChildAssociations().size() < 1) - throw new BffEngineException(ErrorCodes.BFF_ENGINE_1029,targetEle.getLabelID()); + throw new BffEngineCoreException(BffEngineCoreErrorCodes.GSP_BFF_ENGINE_1029,modelName,voObject.getName(),targetEle.getName()); AssociationInfo info = new AssociationInfo(); if(value instanceof ICefData) { @@ -100,14 +102,14 @@ public class BffEngineDataConvertor extends AbstractDataConvertor { try { refValue = method.invoke(value, refEle.getLabelID()); } catch (IllegalAccessException | InvocationTargetException e) { - throw new BffEngineException(e, ErrorCodes.BFF_ENGINE_1030, refEle.getLabelID()); + throw new BffEngineCoreException(e, BffEngineCoreErrorCodes.GSP_BFF_ENGINE_1030, value.getClass().getName(),voObject.getName(),refEle.getName(),e.getMessage()); } info.setValue(refEle.getLabelID(), refValue); } return info; } catch (NoSuchMethodException | IllegalAccessException | InvocationTargetException e) { - throw new BffEngineException(e, ErrorCodes.BFF_ENGINE_1031, value.getClass().getName()); + throw new BffEngineCoreException(e, BffEngineCoreErrorCodes.GSP_BFF_ENGINE_1031, value.getClass().getName(),voObject.getName(),sourceEle.getName(),e.getMessage()); } } return info; @@ -123,8 +125,8 @@ public class BffEngineDataConvertor extends AbstractDataConvertor { String beChildObjId = childObj.getMapping().getTargetObjId(); var beChildObj = beObject.getChildObjectById(beChildObjId); if (beChildObj == null) { - String[] msg = new String[]{childObj.getCode(), beChildObjId}; - throw new BffEngineException(ErrorCodes.BFF_ENGINE_1032, msg); + String modelName=voObject.getBelongModel()==null?"":voObject.getBelongModel().getName(); + throw new BffEngineCoreException(BffEngineCoreErrorCodes.GSP_BFF_ENGINE_1032, modelName,voObject.getName(),beChildObjId,beObject.getName(),beObject.getCode()); } return new BffEngineDataConvertor(childObj, (GspBizEntityObject) beChildObj); } @@ -154,8 +156,9 @@ public class BffEngineDataConvertor extends AbstractDataConvertor { if(value == null){ return null; } + String modelName=beObject.getBelongModel()==null?"":beObject.getBelongModel().getName(); if(beEle.getChildAssociations() == null || beEle.getChildAssociations().size() < 1) - throw new BffEngineException(ErrorCodes.BFF_ENGINE_1029, beEle.getLabelID()); + throw new BffEngineCoreException(BffEngineCoreErrorCodes.GSP_BFF_ENGINE_1029,modelName,beObject.getName(),beEle.getName()); //TODO 生成型be后续处理 AssociationInfo info = new AssociationInfo(); diff --git a/bff-engine-core/src/main/java/com/inspur/edp/bff/engine/entity/defaultvalue/BffEngineDefaultValueMapConvertor.java b/bff-engine-core/src/main/java/com/inspur/edp/bff/engine/entity/defaultvalue/BffEngineDefaultValueMapConvertor.java index 5bcf41a1bdc02087f8733aa17536cd1905c09304..af357b678c122ee99f42f6e47e516026536f9583 100644 --- a/bff-engine-core/src/main/java/com/inspur/edp/bff/engine/entity/defaultvalue/BffEngineDefaultValueMapConvertor.java +++ b/bff-engine-core/src/main/java/com/inspur/edp/bff/engine/entity/defaultvalue/BffEngineDefaultValueMapConvertor.java @@ -18,8 +18,8 @@ package com.inspur.edp.bff.engine.entity.defaultvalue; import com.inspur.edp.bef.bizentity.GspBizEntityObject; import com.inspur.edp.bff.api.dataprocessor.IDefaultValueConvertor; -import com.inspur.edp.bff.engine.api.exception.BffEngineException; -import com.inspur.edp.bff.engine.api.exception.ErrorCodes; +import com.inspur.edp.bff.engine.core.exception.BffEngineCoreException; +import com.inspur.edp.bff.engine.core.exception.BffEngineCoreErrorCodes; import com.inspur.edp.bff.entity.defaultvalue.VoDefaultValue; import com.inspur.edp.das.commonmodel.IGspCommonElement; import com.inspur.edp.formserver.viewmodel.GspViewModelElement; @@ -50,10 +50,14 @@ public class BffEngineDefaultValueMapConvertor implements IDefaultValueConvertor GspViewModelElement voElement = (GspViewModelElement) voObject.getElementByLabelId(labelId); if (!voElement.getMapping().getTargetObjectId().equals(beObject.getID())) continue; - IGspCommonElement beElement = beObject.findElement(voElement.getMapping().getTargetElementId()); + String targetElementId = voElement.getMapping().getTargetElementId(); + IGspCommonElement beElement = beObject.findElement(targetElementId); if (beElement == null) { - String[] msgParams = {voElement.getLabelID(), voElement.getMapping().getTargetElementId()}; - throw new BffEngineException(ErrorCodes.BFF_ENGINE_1033,msgParams); + String voName=voObject.getBelongModel()==null ? "":voObject.getBelongModel().getName(); + String beName=beObject.getBelongModel()==null ? "":beObject.getBelongModel().getName(); + + throw new BffEngineCoreException(BffEngineCoreErrorCodes.GSP_BFF_ENGINE_1033,voName,voObject.getName(),voElement.getName(), + targetElementId,beName,beObject.getName()); } beDefaultValue.put(beElement.getLabelID(), item.getValue()); }