Exception: Moxml::MemoryError

Inherits:
Error
  • Object
show all
Defined in:
lib/moxml/errors.rb

Overview

Memory errors

Direct Known Subclasses

DocumentTooLargeError

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message, size)
  @size = size
  super("#{message} (Size: #{size} bytes)")
end

Instance Attribute Details

#sizeObject (readonly)

Returns the value of attribute size.



132
133
134
# File 'lib/moxml/errors.rb', line 132

def size
  @size
end