Exception: EML::Error

Inherits:
StandardError
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/eml/error.rb

Overview

Error is the base class for more specific EML errors

Direct Known Subclasses

RESTError, TNSError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil) ⇒ Error

Returns a new instance of Error.



12
13
14
# File 'lib/eml/error.rb', line 12

def initialize(message = nil)
  @message = T.let(message, T.nilable(String))
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



9
10
11
# File 'lib/eml/error.rb', line 9

def message
  @message
end