Exception: Angus::SDoc::InvalidServiceMessage
- Inherits:
-
StandardError
- Object
- StandardError
- Angus::SDoc::InvalidServiceMessage
- Defined in:
- lib/angus/exceptions/invalid_service_message.rb
Instance Attribute Summary collapse
-
#error_message ⇒ Object
Returns the value of attribute error_message.
-
#message_key ⇒ Object
Returns the value of attribute message_key.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #error_key ⇒ Object
-
#initialize(message_key, error_message) ⇒ InvalidServiceMessage
constructor
A new instance of InvalidServiceMessage.
- #message ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(message_key, error_message) ⇒ InvalidServiceMessage
Returns a new instance of InvalidServiceMessage.
8 9 10 11 |
# File 'lib/angus/exceptions/invalid_service_message.rb', line 8 def initialize(, ) self.= self.= end |
Instance Attribute Details
#error_message ⇒ Object
Returns the value of attribute error_message.
6 7 8 |
# File 'lib/angus/exceptions/invalid_service_message.rb', line 6 def @error_message end |
#message_key ⇒ Object
Returns the value of attribute message_key.
6 7 8 |
# File 'lib/angus/exceptions/invalid_service_message.rb', line 6 def @message_key end |
Instance Method Details
#==(other) ⇒ Object
25 26 27 28 |
# File 'lib/angus/exceptions/invalid_service_message.rb', line 25 def ==(other) other.kind_of?(InvalidServiceMessage) && other. == self. && self. == other. end |
#error_key ⇒ Object
13 14 15 |
# File 'lib/angus/exceptions/invalid_service_message.rb', line 13 def error_key self.class.name end |
#message ⇒ Object
17 18 19 |
# File 'lib/angus/exceptions/invalid_service_message.rb', line 17 def "#@message_key => #@error_message" end |
#to_s ⇒ Object
21 22 23 |
# File 'lib/angus/exceptions/invalid_service_message.rb', line 21 def to_s end |