Exception: Bluetooth::Error

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/bluetooth.rb

Class Method Summary collapse

Class Method Details

.raise(status) ⇒ Object



8
9
10
11
12
13
# File 'lib/bluetooth.rb', line 8

def self.raise status
  err = Bluetooth::ERRORS[status]
  super(*err) if err

  super self, "unknown error (#{status})"
end