# File lib/new_relic/agent/new_relic_service/marshaller.rb, line 9
        def parsed_error(error)
          error_type    = error['error_type']
          error_message = error['message']

          exception = case error_type
          when 'NewRelic::Agent::LicenseException'
            LicenseException.new(error_message)
          when 'NewRelic::Agent::ForceRestartException'
            ForceRestartException.new(error_message)
          when 'NewRelic::Agent::ForceDisconnectException'
            ForceDisconnectException.new(error_message)
          else
            CollectorError.new("#{error['error_type']}: #{error['message']}")
          end

          exception
        end