Exception: CFA::AugeasParsingError
- Inherits:
-
AugeasError
- Object
- RuntimeError
- AugeasError
- CFA::AugeasParsingError
- Defined in:
- lib/cfa/augeas_parser.rb
Overview
Parsing error
Instance Attribute Summary collapse
-
#aug_message ⇒ Object
readonly
Returns the value of attribute aug_message.
-
#character ⇒ Object
readonly
Returns the value of attribute character.
-
#file ⇒ Object
readonly
Returns the value of attribute file.
-
#file_content ⇒ Object
readonly
Returns the value of attribute file_content.
-
#lens ⇒ Object
readonly
Returns the value of attribute lens.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
Instance Method Summary collapse
-
#initialize(params) ⇒ AugeasParsingError
constructor
A new instance of AugeasParsingError.
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_message ⇒ Object (readonly)
Returns the value of attribute aug_message.
58 59 60 |
# File 'lib/cfa/augeas_parser.rb', line 58 def @aug_message end |
#character ⇒ Object (readonly)
Returns the value of attribute character.
61 62 63 |
# File 'lib/cfa/augeas_parser.rb', line 61 def character @character end |
#file ⇒ Object (readonly)
Returns the value of attribute file.
59 60 61 |
# File 'lib/cfa/augeas_parser.rb', line 59 def file @file end |
#file_content ⇒ Object (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 |
#lens ⇒ Object (readonly)
Returns the value of attribute lens.
62 63 64 |
# File 'lib/cfa/augeas_parser.rb', line 62 def lens @lens end |
#line ⇒ Object (readonly)
Returns the value of attribute line.
60 61 62 |
# File 'lib/cfa/augeas_parser.rb', line 60 def line @line end |