module DNSimple class Error < StandardError def initialize(domain, messages) @domain = domain @messages = messages super "An error occurred: #{messages}" end end class RecordExists < Error; end end