Exception: R3EXS::ScriptsInfoPathError

Inherits:
IOError
  • Object
show all
Defined in:
lib/R3EXS/error.rb

Overview

用来处理 Scripts_info.json 文件不存在的异常

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg = '', scripts_info_path) ⇒ ScriptsInfoPathError

初始化 ScriptsInfoPathError

Parameters:

  • msg (String) (defaults to: '')

    异常信息

  • scripts_info_path (String)

    引发异常的 Scripts_info.json 文件路径



219
220
221
222
# File 'lib/R3EXS/error.rb', line 219

def initialize(msg = '', scripts_info_path)
    super(msg)
    @scripts_info_path = scripts_info_path
end

Instance Attribute Details

#scripts_info_pathString (readonly)

引发异常的 Scripts_info.json 文件路径

Returns:

  • (String)


211
212
213
# File 'lib/R3EXS/error.rb', line 211

def scripts_info_path
  @scripts_info_path
end