Class: Fix::Protocol::ParseFailure

Inherits:
Object
  • Object
show all
Defined in:
lib/fix/protocol/parse_failure.rb

Overview

Represents a failure to parse a message, the errors collection should contain the specific error messages

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(errs, msg = nil) ⇒ ParseFailure


12
13
14
15
# File 'lib/fix/protocol/parse_failure.rb', line 12

def initialize(errs, msg = nil)
  @errors   = [errs].flatten.compact
  @message  = msg
end

Instance Attribute Details

#errorsObject

Returns the value of attribute errors


10
11
12
# File 'lib/fix/protocol/parse_failure.rb', line 10

def errors
  @errors
end

#messageObject

Returns the value of attribute message


10
11
12
# File 'lib/fix/protocol/parse_failure.rb', line 10

def message
  @message
end