Class: OpenVASOMP::OMPError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/openvas-omp.rb

Direct Known Subclasses

OMPAuthError, OMPResponseError, XMLParsingError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(req, reason = '') ⇒ OMPError

Returns a new instance of OMPError.



57
58
59
60
# File 'lib/openvas-omp.rb', line 57

def initialize(req, reason = '')
	self.req = req
	self.reason = reason
end

Instance Attribute Details

#reasonObject

Returns the value of attribute reason.



56
57
58
# File 'lib/openvas-omp.rb', line 56

def reason
  @reason
end

#reqObject

Returns the value of attribute req.



56
57
58
# File 'lib/openvas-omp.rb', line 56

def req
  @req
end

Instance Method Details

#to_sObject



61
62
63
# File 'lib/openvas-omp.rb', line 61

def to_s
	"OpenVAS OMP: #{self.reason}"
end