Exception: CFA::AugeasParsingError

Inherits:
AugeasError
  • Object
show all
Defined in:
lib/cfa/augeas_parser.rb

Overview

Parsing error

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ AugeasParsingError

Returns a new instance of AugeasParsingError.



65
66
67
68
69
70
71
72
73
74
75
76
# File 'lib/cfa/augeas_parser.rb', line 65

def initialize(params)
  @aug_message = params[:message]
  @file = params[:file]
  @line = params[:line]
  @char = params[:char]
  @lens = params[:lens]
  @file_content = params[:file_content]

  super("Augeas parsing error: #{@aug_message}" \
    " at #{@file}:#{@line}:#{@char}, lens #{@lens}"
  )
end

Instance Attribute Details

#aug_messageObject (readonly)

Returns the value of attribute aug_message.



58
59
60
# File 'lib/cfa/augeas_parser.rb', line 58

def aug_message
  @aug_message
end

#characterObject (readonly)

Returns the value of attribute character.



61
62
63
# File 'lib/cfa/augeas_parser.rb', line 61

def character
  @character
end

#fileObject (readonly)

Returns the value of attribute file.



59
60
61
# File 'lib/cfa/augeas_parser.rb', line 59

def file
  @file
end

#file_contentObject (readonly)

Returns the value of attribute file_content.



63
64
65
# File 'lib/cfa/augeas_parser.rb', line 63

def file_content
  @file_content
end

#lensObject (readonly)

Returns the value of attribute lens.



62
63
64
# File 'lib/cfa/augeas_parser.rb', line 62

def lens
  @lens
end

#lineObject (readonly)

Returns the value of attribute line.



60
61
62
# File 'lib/cfa/augeas_parser.rb', line 60

def line
  @line
end