Exception: Ro::Error
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
Instance Method Summary collapse
-
#initialize(message, **context) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, **context) ⇒ Error
Returns a new instance of Error.
5 6 7 8 9 |
# File 'lib/ro/error.rb', line 5 def initialize(, **context) @context = context msg = context.empty? ? "#{ }" : "#{ }, #{ context.inspect }" super(msg) end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
3 4 5 |
# File 'lib/ro/error.rb', line 3 def context @context end |