Exception: Orthoses::ConstLoadError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/orthoses.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(root:, const:, error:) ⇒ ConstLoadError

Returns a new instance of ConstLoadError.



47
48
49
50
51
# File 'lib/orthoses.rb', line 47

def initialize(root:, const:, error:)
  @root = root
  @const = const
  @error = error
end

Instance Attribute Details

#constObject (readonly)

Returns the value of attribute const.



45
46
47
# File 'lib/orthoses.rb', line 45

def const
  @const
end

#errorObject (readonly)

Returns the value of attribute error.



46
47
48
# File 'lib/orthoses.rb', line 46

def error
  @error
end

#rootObject (readonly)

Returns the value of attribute root.



44
45
46
# File 'lib/orthoses.rb', line 44

def root
  @root
end

Instance Method Details

#messageObject



53
54
55
# File 'lib/orthoses.rb', line 53

def message
  "root=#{root}, const=#{const}, error=#{error.inspect}"
end