Exception: Tingee::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/tingee/error.rb

Overview

A non-"00" Tingee response, or a transport/config failure. code keeps Tingee's raw code for programmatic handling. Two undocumented-but-observed series exist and are NOT reconciled by Tingee: business codes 1001–1076, and signature codes 90 (bad timestamp) / 91 (timeout) / 97 (bad signature). We keep the raw code as-is.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, detail) ⇒ Error

Returns a new instance of Error.



9
10
11
12
# File 'lib/tingee/error.rb', line 9

def initialize(code, detail)
  @code = code
  super("Tingee error #{code}: #{detail}")
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



7
8
9
# File 'lib/tingee/error.rb', line 7

def code
  @code
end