Exception: CFA::AugeasSerializingError

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

Overview

Serializing error

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ AugeasSerializingError



86
87
88
89
90
91
92
93
94
95
# File 'lib/cfa/augeas_parser.rb', line 86

def initialize(params)
  @aug_message = params[:message]
  @file = params[:file]
  @lens = params[:lens]
  @aug_tree = params[:aug_tree]

  super("Augeas serializing error: #{@aug_message}" \
    " for #{@file} with lens #{@lens}"
  )
end

Instance Attribute Details

#aug_messageObject (readonly)

Returns the value of attribute aug_message.



81
82
83
# File 'lib/cfa/augeas_parser.rb', line 81

def aug_message
  @aug_message
end

#aug_treeObject (readonly)

Returns the value of attribute aug_tree.



84
85
86
# File 'lib/cfa/augeas_parser.rb', line 84

def aug_tree
  @aug_tree
end

#fileObject (readonly)

Returns the value of attribute file.



82
83
84
# File 'lib/cfa/augeas_parser.rb', line 82

def file
  @file
end

#lensObject (readonly)

Returns the value of attribute lens.



83
84
85
# File 'lib/cfa/augeas_parser.rb', line 83

def lens
  @lens
end