Sha256: 72884418553610c305069f353067a871c98cef15707107c77c4add5b7ff24466

Contents?: true

Size: 699 Bytes

Versions: 4

Compression:

Stored size: 699 Bytes

Contents

class BceClientException < RuntimeError
   attr_accessor :message

   def initialize(message)
      @message = message
   end

end

class BceServerException < RuntimeError
   attr_accessor :status_code
   attr_accessor :message

   def initialize(status_code, message)
      @status_code = status_code
      @message = message
   end

end

class BceHttpException < RuntimeError
    attr_accessor :http_code
    attr_accessor :http_headers
    attr_accessor :http_body
    attr_accessor :message

    def initialize(http_code, http_headers, http_body, message)
        @http_code = http_code
        @http_headers = http_headers
        @http_body = http_body
        @message = message
    end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
baidubce-sdk-0.9.4 lib/baidubce/exception.rb
baidubce-sdk-0.9.3 lib/baidubce/exception.rb
baidubce-sdk-0.9.1 lib/baidubce/exception.rb
baidubce-sdk-0.9.0 lib/baidubce/exception.rb