Moved resource exceptions into a separate package and added documentation.