lib/dingtalk.rb in dingtalk-ruby-0.1.2 vs lib/dingtalk.rb in dingtalk-ruby-0.1.3
- old
+ new
@@ -3,9 +3,16 @@
# Dingtalk top namespace
module Dingtalk
class Error < StandardError; end
class RequestException < RuntimeError; end
+ class TopException < RuntimeError
+ attr_accessor :errcode, :errmsg, :application_host, :service_host
+
+ def to_s
+ "\nerrcode= #{@errcode}\nerrmsg=#{@errmsg}\napplication_host=#{@application_host}\nservice_host=#{@service_host}"
+ end
+ end
class << self
attr_accessor :configuration
def configuration