Separated exception class into its own file.