Module: Yuki::EXC

Defined in:
docs/000_a_root.rb

Overview

Module that allows the game to write and Error.log file if the Exception is not a SystemExit or a Reset

Creation date : 2013, update : 26/09/2017

Author:

  • Nuri Yuri

Constant Summary collapse

Software =

Name of the current Game/Software

'PSDK'

Class Method Summary collapse

Class Method Details

.build_error_log(e) ⇒ String

Method that build the error log.

Parameters:

  • e (Exception)

    the exception thrown by Ruby

Returns:

  • (String)

    the log readable by anybody



444
445
# File 'docs/000_a_root.rb', line 444

def build_error_log(e)
end

.build_system_stack_error_log(e, str)

Build the SystemStackError message

Parameters:

  • e (SystemStackError)
  • str


462
463
# File 'docs/000_a_root.rb', line 462

def build_system_stack_error_log(e, str)
end

.dot_25_battle_reproduction(scene)

Function building the reproduction file

Parameters:



466
467
# File 'docs/000_a_root.rb', line 466

def dot_25_battle_reproduction(scene)
end

.fix_source_path(source_name) ⇒ String

Function that corrects the source path

Parameters:

  • source_name (String)

    the source name path

Returns:

  • (String)

    the fixed source name



449
450
# File 'docs/000_a_root.rb', line 449

def fix_source_path(source_name)
end

.get_eval_scriptString?

Get the eval script used by the current eval command

Returns:



457
458
# File 'docs/000_a_root.rb', line 457

def get_eval_script
end

.mining_game_reproduction(grid_handler)

Function building the reproduction file for the Mining Game

Parameters:



470
471
# File 'docs/000_a_root.rb', line 470

def mining_game_reproduction(grid_handler)
end

.run(e) .run(e, io)

Method that runs #build_error_log if the Exception is not a SystemExit or a Reset.

Overloads:

  • .run(e)

    The log is sent to Error.log

    Parameters:

    • e (Exception)

      the exception thrown by Ruby

  • .run(e, io)

    The log is sent to an io

    Parameters:

    • e (Exception)

      the exception thrown by Ruby

    • io (#<<)

      the io that receive the log



439
440
# File 'docs/000_a_root.rb', line 439

def run(e, io = nil)
end

.set_eval_script(script)

Sets the script used by the eval command

Parameters:

  • script (String, nil)

    the script used in the eval command



453
454
# File 'docs/000_a_root.rb', line 453

def set_eval_script(script)
end

.show_error_window(log)

Function that shows the error window

Parameters:



474
475
# File 'docs/000_a_root.rb', line 474

def show_error_window(log)
end