Skip to content
Snippets Groups Projects
Commit f3a79aee authored by vkovtun's avatar vkovtun
Browse files

SSDM-13256: Added more context to track a thrown exception.

parent 90dccbfa
No related branches found
No related tags found
1 merge request!40SSDM-13578 : 2PT : Database and V3 Implementation - include the new AFS "free"...
...@@ -137,7 +137,7 @@ public abstract class AbstractXLSEntityExportHelper<ENTITY extends IPermIdHolder ...@@ -137,7 +137,7 @@ public abstract class AbstractXLSEntityExportHelper<ENTITY extends IPermIdHolder
return propertyTypes.stream() return propertyTypes.stream()
.filter(propertyType -> Objects.equals(propertyType.getCode(), fieldId)) .filter(propertyType -> Objects.equals(propertyType.getCode(), fieldId))
.findFirst() .findFirst()
.orElseThrow() .orElseThrow(() -> new IllegalArgumentException("Property type not found for id: " + fieldId))
.getLabel(); .getLabel();
} }
default: default:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment