update dynamo exception to struct & record to Record for elixir 0.13.3