dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #41559
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 21179: minor fix
------------------------------------------------------------
revno: 21179
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2015-11-24 09:57:43 +0700
message:
minor fix
modified:
dhis-2/dhis-api/src/main/java/org/hisp/dhis/attribute/exception/MissingMandatoryAttributeValueException.java
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/attribute/exception/MissingMandatoryAttributeValueException.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/attribute/exception/MissingMandatoryAttributeValueException.java 2015-11-24 02:56:45 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/attribute/exception/MissingMandatoryAttributeValueException.java 2015-11-24 02:57:43 +0000
@@ -38,10 +38,19 @@
*/
public class MissingMandatoryAttributeValueException extends Exception
{
+ private final List<Attribute> mandatoryAttributes;
+
public MissingMandatoryAttributeValueException( List<Attribute> mandatoryAttributes )
{
super( String.valueOf( mandatoryAttributes.stream()
.map( att -> "Attribute " + att.getDisplayName() + " (" + att.getUid() + ")" )
.collect( Collectors.toList() ) ) );
+
+ this.mandatoryAttributes = mandatoryAttributes;
+ }
+
+ public List<Attribute> getMandatoryAttributes()
+ {
+ return mandatoryAttributes;
}
}