move exception functions to exception.d
Merge pull request #564 from WalterBright/move-to-exception

move exception functions to exception.d