Exception: ClamScan::UnknownError

Inherits:
ResponseError show all
Defined in:
lib/clam_scan/exceptions.rb

Instance Attribute Summary

Attributes inherited from ResponseError

#response

Instance Method Summary collapse

Constructor Details

#initialize(response, message = nil) ⇒ UnknownError

Returns a new instance of UnknownError.



19
20
21
22
23
# File 'lib/clam_scan/exceptions.rb', line 19

def initialize (response, message=nil)
  message ||= response.body
  message = "An unknown error caused #{::ClamScan.configuration.client_location} to exit with status #{response.process_status.exitstatus.to_s}\n#{message}"
  super(response, message)
end