Exception: TdlError

Inherits:
ScriptError
  • Object
show all
Defined in:
lib/tdl/tdlerror/tdlerror.rb

Instance Method Summary collapse

Constructor Details

#initialize(arge) ⇒ TdlError

Returns a new instance of TdlError.



2
3
4
5
6
7
8
# File 'lib/tdl/tdlerror/tdlerror.rb', line 2

def initialize(arge)
    Tdl.PutsEnable = false
    head_str0 = String.new("\n+_____________________________________________+\n")
    head_str1 = "\n|----------------TDL ERROR--------------------|\n"
    end_str0  = "\n+================TDL ERROR====================+\n"
    super(head_str0.concat(head_str1).concat(arge.to_s[0,255]).concat(end_str0))
end