class Strum::Errors::PacketSizeConflict

Public Class Methods

new(packet) click to toggle source
Calls superclass method
# File lib/strum/internal/errors.rb, line 22
def initialize(packet)
  super("Packet of Opcode: #{packet[:Data][:Header][:OperationCode]} has a header size of #{packet[:Data][:Header][:PacketSize]} while the actual size of the data is #{packet[:Data][:Payload][:Buffer].size} ")
end