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



629
630
# File 'docs/000_a_root.rb', line 629

def build_error_log(e)
end

.build_system_stack_error_log(e, str)

Build the SystemStackError message

Parameters:

  • e (SystemStackError)
  • str


647
648
# File 'docs/000_a_root.rb', line 647

def build_system_stack_error_log(e, str)
end

.dot_25_battle_reproduction(scene)

Function building the reproduction file

Parameters:



651
652
# File 'docs/000_a_root.rb', line 651

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



634
635
# File 'docs/000_a_root.rb', line 634

def fix_source_path(source_name)
end

.get_eval_script ⇒ String?

Get the eval script used by the current eval command

Returns:



642
643
# File 'docs/000_a_root.rb', line 642

def get_eval_script
end

.mining_game_reproduction(grid_handler)

Function building the reproduction file for the Mining Game

Parameters:



655
656
# File 'docs/000_a_root.rb', line 655

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



624
625
# File 'docs/000_a_root.rb', line 624

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



638
639
# File 'docs/000_a_root.rb', line 638

def set_eval_script(script)
end

.show_error_window(log)

Function that shows the error window

Parameters:



659
660
# File 'docs/000_a_root.rb', line 659

def show_error_window(log)
end