Skip to content

Instantly share code, notes, and snippets.

@ryandavidhartman
Last active August 29, 2015 14:22
Show Gist options
  • Save ryandavidhartman/ba1553a4aca3c59628f0 to your computer and use it in GitHub Desktop.
Save ryandavidhartman/ba1553a4aca3c59628f0 to your computer and use it in GitHub Desktop.
try_2
def collectData(): List[Data] = {
val data = runDataCollectionJob()
if(data.length == 0)
throw new DataException("Data Collection Fails")
data
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment