Method: Net::DNS::Header#rCode_str
- Defined in:
- lib/net/dns/header.rb
#rCode_str ⇒ Object
Returns an error array for the header response code, or nil if no error is generated.
error, cause = header.rCode_str
puts "Error #{error} cause by: #{cause}" if error
#=> Error ForErr caused by: The name server
#=> was unable to interpret the query
606 607 608 |
# File 'lib/net/dns/header.rb', line 606 def rCode_str return rCode.type, rCode.explanation end |