Exception: MemoryIO::Error

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

Overview

The base class of all errors raised by MemoryIO.

Rescue this class to catch every error this library raises on its own. Errors that propagate from Ruby itself are not covered.

Examples:

begin
  MemoryIO.attach(0)
rescue MemoryIO::Error => e
  puts e.message
end
# /proc/0/mem does not exist