Enc error handling master

Add some encryption specific exceptions to handle various error cases, including #9636