Exception: Win32::Pdh::PdhError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/win32/pdh.rb

Overview

Simple error subclass. Currently, this is what type all exceptions directly raised by this library are.

Instance Method Summary collapse

Constructor Details

#initialize(status) ⇒ PdhError

Returns a new instance of PdhError.



11
12
13
# File 'lib/win32/pdh.rb', line 11

def initialize(status)
  super("PDH error #{Constants::NAMES[status]}: #{Constants::MESSAGES[status]}")
end