Class: PacketGen::Header::SCTP::UnrecognizedChunkTypeError

Inherits:
Error
  • Object
show all
Defined in:
lib/packetgen/header/sctp/error.rb,
lib/packetgen/header/sctp/error.rb

Overview

Unrecognized chunk type error. The receiver does not understand the chunk and the upper bits of the ‘Chunk Type’ are set to 01 or 11.

Author:

  • Sylvain Daubert

  • LemonTree55

Since:

  • 3.4.0

  • 4.1.0 Derived from Error

Constant Summary

Constants inherited from Error

Error::TYPES

Instance Method Summary collapse

Methods inherited from Error

#error_name, #from_human

Methods included from Padded32

#padded?, #to_s

Instance Method Details

#to_humanString

Get human-readable string

Returns:

  • (String)

Since:

  • 3.4.0

  • 4.1.0 Derived from Error



228
229
230
# File 'lib/packetgen/header/sctp/error.rb', line 228

def to_human
  "<#{error_name}: #{self[:value].to_human}>"
end