Exception: ToiletTracker::Core::InvalidMessageFormat
- Inherits:
-
ParseError
- Object
- StandardError
- Error
- ParseError
- ToiletTracker::Core::InvalidMessageFormat
- Defined in:
- lib/toilet_tracker/core/errors.rb
Instance Attribute Summary collapse
-
#expected_format ⇒ Object
readonly
Returns the value of attribute expected_format.
-
#message_content ⇒ Object
readonly
Returns the value of attribute message_content.
Instance Method Summary collapse
-
#initialize(message_content, expected_format = nil) ⇒ InvalidMessageFormat
constructor
A new instance of InvalidMessageFormat.
Constructor Details
#initialize(message_content, expected_format = nil) ⇒ InvalidMessageFormat
Returns a new instance of InvalidMessageFormat.
12 13 14 15 16 |
# File 'lib/toilet_tracker/core/errors.rb', line 12 def initialize(, expected_format = nil) @message_content = @expected_format = expected_format super() end |
Instance Attribute Details
#expected_format ⇒ Object (readonly)
Returns the value of attribute expected_format.
10 11 12 |
# File 'lib/toilet_tracker/core/errors.rb', line 10 def expected_format @expected_format end |
#message_content ⇒ Object (readonly)
Returns the value of attribute message_content.
10 11 12 |
# File 'lib/toilet_tracker/core/errors.rb', line 10 def @message_content end |