Exception: Moxml::MemoryError
- Defined in:
- lib/moxml/errors.rb
Overview
Memory errors
Direct Known Subclasses
Instance Attribute Summary collapse
-
#size ⇒ Object
readonly
Returns the value of attribute size.
Instance Method Summary collapse
-
#initialize(message, size) ⇒ MemoryError
constructor
A new instance of MemoryError.
Constructor Details
#initialize(message, size) ⇒ MemoryError
Returns a new instance of MemoryError.
134 135 136 137 |
# File 'lib/moxml/errors.rb', line 134 def initialize(, size) @size = size super("#{} (Size: #{size} bytes)") end |
Instance Attribute Details
#size ⇒ Object (readonly)
Returns the value of attribute size.
132 133 134 |
# File 'lib/moxml/errors.rb', line 132 def size @size end |