Module: SSLyze::XML::Attributes::Exception

Included in:
HTTPHeaders::HTTPPublicKeyPinning, HTTPHeaders::HTTPStrictTransportSecurity, Plugin
Defined in:
lib/sslyze/xml/attributes/exception.rb

Overview

Provides methods for accessing the exception XML attribute.

Since:

  • 1.0.0

Instance Method Summary collapse

Instance Method Details

#exceptionString?

The exception message, if an exception occurred.

Returns:

  • (String, nil)

Since:

  • 1.0.0



15
16
17
# File 'lib/sslyze/xml/attributes/exception.rb', line 15

def exception
  @exception ||= @node['exception']
end

#exception?Boolean

Tests whether an exception occurred.

Returns:

Since:

  • 1.0.0



24
25
26
# File 'lib/sslyze/xml/attributes/exception.rb', line 24

def exception?
  !exception.nil?
end