Flowdock
method

new

Importance_0
v1_9_3_125 - Show latest stable - 0 notes - Class: Error
new(code) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File ext/dl/win32/lib/win32/registry.rb, line 168
      def initialize(code)
        @code = code
        msg = "\00"".force_encoding(Encoding::ASCII_8BIT) * 1024
        len = FormatMessageA.call(0x1200, 0, code, 0, msg, 1024, 0)
        msg = msg[0, len].force_encoding(Encoding.find(Encoding.locale_charmap))
        super msg.tr("\r", '').chomp
      end
Register or log in to add new notes.