class UPnP::Control::Service::UPnPError

Error raised when there was an error while calling an action

Attributes

code[RW]

The UPnP fault code

description[RW]

The UPnP fault description

Public Class Methods

new(description, code) click to toggle source

Creates a new UPnP error using description and code

# File lib/UPnP/control/service.rb, line 54
def initialize(description, code)
  @code = code
  @description = description
end

Public Instance Methods

to_s() click to toggle source

Error string including code and description

# File lib/UPnP/control/service.rb, line 62
def to_s
  "#{@description} (#{@code})"
end