Exception: Wechat::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Wechat::Error
- Defined in:
- lib/wechat/error.rb
Overview
Custom error class for rescuing from Wechat errors
Direct Known Subclasses
Instance Method Summary collapse
- #build_error_message ⇒ Object
-
#initialize(code) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(code) ⇒ Error
Returns a new instance of Error.
5 6 7 8 9 |
# File 'lib/wechat/error.rb', line 5 def initialize(code) @code = code super() end |
Instance Method Details
#build_error_message ⇒ Object
11 12 13 |
# File 'lib/wechat/error.rb', line 11 def "HTTP-Code: #{@code}" end |