I am new to java 8 and I have this question
private Supplier<MissingAttribute> getExceptionSupplier(final String message) {
return () -> new MissingAttribute(message);
}
A team member of mine said taking in message object makes it no longer a supplier but a function but another team member said this is still a supplier (a get function). The message in the function is predefined
I am confused as to what is right.
public class MissingAttribute extends Exception {
public MissingAttribute(String message, Exception cause) {
super(message + " : " + cause.getMessage(), cause);
}
public MissingAttribute(String message) {
super(message);
}
.
.
.
I did research online, but I am still not sure of the answer. Any insights on this are appreciated!!