Exception: MachO::LoadCommandCreationArityError

Inherits:
MachOError
  • Object
show all
Defined in:
lib/macho/exceptions.rb

Overview

Raised when the number of arguments used to create a load command manually is wrong.

Instance Method Summary collapse

Constructor Details

#initialize(cmd_sym, expected_arity, actual_arity) ⇒ LoadCommandCreationArityError

Returns a new instance of LoadCommandCreationArityError.

Parameters:

  • cmd_sym (Symbol)

    the load command's symbol

  • expected_arity (Integer)

    the number of arguments expected

  • actual_arity (Integer)

    the number of arguments received



121
122
123
124
# File 'lib/macho/exceptions.rb', line 121

def initialize(cmd_sym, expected_arity, actual_arity)
  super "Expected #{expected_arity} arguments for #{cmd_sym} creation," \
    " got #{actual_arity}"
end