Class: PacketGen::Header::SCTP::MissingMandatoryParameterError

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

Overview

MissingMandatoryParameter error. Indicate that one or more mandatory TLV parameters are missing in a received InitChunk or InitAckChunk.

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



157
158
159
# File 'lib/packetgen/header/sctp/error.rb', line 157

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