Class: SSLCheck::Errors::GenericError
- Inherits:
-
Object
- Object
- SSLCheck::Errors::GenericError
- Defined in:
- lib/sslcheck/generic_error.rb
Direct Known Subclasses
Connection::InvalidURI, Connection::SSLVerify, Connection::SocketError, Validation::CABundleVerification, Validation::CertificateExpired, Validation::CommonNameMismatch, Validation::NotYetIssued
Instance Attribute Summary collapse
-
#message ⇒ Object
Returns the value of attribute message.
-
#name ⇒ Object
Returns the value of attribute name.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ GenericError
constructor
A new instance of GenericError.
- #to_s ⇒ Object
Constructor Details
#initialize(opts = {}) ⇒ GenericError
Returns a new instance of GenericError.
5 6 7 8 9 |
# File 'lib/sslcheck/generic_error.rb', line 5 def initialize(opts={}) self.name = opts[:name] self.type = opts[:type] self. = opts[:message] end |
Instance Attribute Details
#message ⇒ Object
Returns the value of attribute message.
4 5 6 |
# File 'lib/sslcheck/generic_error.rb', line 4 def @message end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/sslcheck/generic_error.rb', line 4 def name @name end |
#type ⇒ Object
Returns the value of attribute type.
4 5 6 |
# File 'lib/sslcheck/generic_error.rb', line 4 def type @type end |
Instance Method Details
#to_s ⇒ Object
10 11 12 |
# File 'lib/sslcheck/generic_error.rb', line 10 def to_s "[#{self.name}] #{self.}" end |