Move FilePermissionException to contracts.

Signed-off-by: crynobone <crynobone@gmail.com>