Sha256: a838eff1816c60185931e32958e87fa88d647dd609ad5f76ed0274d88bf44c33

Contents?: true

Size: 322 Bytes

Versions: 4

Compression:

Stored size: 322 Bytes

Contents

module RightApi
  module Exceptions
    class ApiException < RuntimeError
      def initialize(message="")
        super("Error: #{message}")
      end
    end

    class UnknownRouteException < ApiException
      def initialize(message="")
        super("Unknown action or route. #{message}")
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
right_api_client-1.5.9 lib/right_api_client/exceptions.rb
right_api_client-1.5.8 lib/right_api_client/exceptions.rb
right_api_client-1.5.7 lib/right_api_client/exceptions.rb
right_api_client-1.5.6 lib/right_api_client/exceptions.rb