Exception: Theman::Agency::Error
- Inherits:
-
Exception
- Object
- Exception
- Theman::Agency::Error
- Defined in:
- lib/theman/agency.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#constant ⇒ Object
Returns the value of attribute constant.
-
#context ⇒ Object
Returns the value of attribute context.
-
#error ⇒ Object
Returns the value of attribute error.
Instance Method Summary collapse
-
#initialize(code, constant, message) ⇒ Error
constructor
A new instance of Error.
- #to_s ⇒ Object
Constructor Details
#initialize(code, constant, message) ⇒ Error
Returns a new instance of Error.
185 186 187 188 189 |
# File 'lib/theman/agency.rb', line 185 def initialize(code, constant, ) @code = code @constant = constant @error, @context = .split(/\n/) end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
183 184 185 |
# File 'lib/theman/agency.rb', line 183 def code @code end |
#constant ⇒ Object
Returns the value of attribute constant.
183 184 185 |
# File 'lib/theman/agency.rb', line 183 def constant @constant end |
#context ⇒ Object
Returns the value of attribute context.
183 184 185 |
# File 'lib/theman/agency.rb', line 183 def context @context end |
#error ⇒ Object
Returns the value of attribute error.
183 184 185 |
# File 'lib/theman/agency.rb', line 183 def error @error end |
Instance Method Details
#to_s ⇒ Object
191 192 193 |
# File 'lib/theman/agency.rb', line 191 def to_s @error end |