Added exceptions to filesystem class