Exception: TruncatedDataError
- Inherits:
-
IOError
- Object
- IOError
- TruncatedDataError
- Defined in:
- lib/readbytes.rb
Overview
TruncatedDataError is raised when IO#readbytes fails to read enough data.
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
The read portion of an IO#readbytes attempt.
Instance Method Summary collapse
-
#initialize(mesg, data) ⇒ TruncatedDataError
constructor
:nodoc:.
Constructor Details
#initialize(mesg, data) ⇒ TruncatedDataError
:nodoc:
4 5 6 7 |
# File 'lib/readbytes.rb', line 4 def initialize(mesg, data) # :nodoc: @data = data super(mesg) end |
Instance Attribute Details
#data ⇒ Object (readonly)
The read portion of an IO#readbytes attempt.
10 11 12 |
# File 'lib/readbytes.rb', line 10 def data @data end |