b0VIM 7.4 FX_P6=jtmarmon_commonJasons-MacBook-Pro.local~jtmarmon_common/code/hellosign-ruby-sdk/lib/hello_sign/error.rbutf-8 3210#"! Utp`ad%`p = } { . L } <  \ R Q C " Y 0 / ut3i>=yx7kON ~}<^:9end eendend end class Unknownend end class UnknownError < Error; end # Raised when API endpoint returns error which is not defined in sdk. class FileNotFound < Error; end # Raised when a file attempted to be sent in a request doesn't exist class NotSupportedType < Error; end # Raised when API endpoint returns the HTTP status code 503. class ServiceUnavailable < Error; end # Raised when API endpoint returns the HTTP status code 503. class BadGateway < Error; end # Raised when API endpoint returns the HTTP status code 502. class InternalServerError < Error; end # Raised when API endpoint returns the HTTP status code 500. class Gone < Error; end # Raised when API endpoint returns the HTTP status code 410. class Conflict < Error; end # Raised when API endpoint returns the HTTP status code 409. class MethodNotAllowed < Error; end # Raised when API endpoint returns the HTTP status code 405. class NotFound < Error; end # Raised when API endpoint returns the HTTP status code 404. class Forbidden < Error; end # Raised when API endpoint returns the HTTP status code 403. class PaidApiPlanRequired < Error; end # Raised when API endpoint returns the HTTP status code 402. class Unauthorized < Error; end # Raised when API endpoint returns the HTTP status code 401. class BadRequest < Error; end # Raised when API endpoint returns the HTTP status code 400. class Parsing < Error; end # Raised when impossible to parse response body. class MissingCredentials < Error; end # Raised when API endpoint credentials not configured. class MissingAttributes < Error; end # Raise when attributes are missing. end end "Message: #{response_body}" "Request URI: #{request_uri}\n"\ "Server responded with code #{response_status}\n" \ def human_readable_message private end super(message || human_readable_message) def initialize(message = nil) attr_accessor :response_status attr_accessor :response_body attr_accessor :request_uri class Error < StandardError; # Custom error class for rescuing from all HelloSign errors. module Errormodule HelloSign## SOFTWARE.# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR## copies or substantial portions of the Software.# The above copyright notice and this permission notice shall be included in all## furnished to do so, subject to the following conditions:# copies of the Software, and to permit persons to whom the Software is# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell# in the Software without restriction, including without limitation the rights# of this software and associated documentation files (the "Software"), to deal# Permission is hereby granted, free of charge, to any person obtaining a copy## Copyright (C) 2014 hellosign.com## The MIT License (MIT)#