Skip to content

Instantly share code, notes, and snippets.

@anuvrat
Created August 31, 2015 16:21
Show Gist options
  • Save anuvrat/ffac8b69e88284bad862 to your computer and use it in GitHub Desktop.
Save anuvrat/ffac8b69e88284bad862 to your computer and use it in GitHub Desktop.
Person(name=Alice, country=US, [email protected])
Person(name=Bob, country=DE, [email protected])
Person(name=Bob, country=DE, emailAddress=null)
Exception in thread "main" receipes.lambda.PersonNotFoundException
at receipes.lambda.FileToPOJO$$Lambda$22/1768305536.get(Unknown Source)
at java.util.Optional.orElseThrow(Optional.java:290)
at receipes.lambda.FileToPOJO.parsePerson(FileToPOJO.java:66)
at receipes.lambda.FileToPOJO.main(FileToPOJO.java:39)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment