Java error checking confused by Scala library

User picture
User picture
User picture
User picture
User picture