Check for empty string.
Add @throws fo dock block function signature
Merge branch '4.0'
Merge pull request #2769 from semalead/throws

Add @throws docblocks to many functions