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

Returns a new instance of AugeasSerializingError.



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

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.



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

def aug_message
  @aug_message
end

#aug_treeObject (readonly)

Returns the value of attribute aug_tree.



86
87
88
# File 'lib/cfa/augeas_parser.rb', line 86

def aug_tree
  @aug_tree
end

#fileObject (readonly)

Returns the value of attribute file.



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

def file
  @file
end

#lensObject (readonly)

Returns the value of attribute lens.



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

def lens
  @lens
end