Sha256: 575e23bf3fd4db3ea331c09d45b4c8867bd3e1a95f0aa394809ff0bb5426daf0

Contents?: true

Size: 270 Bytes

Versions: 7

Compression:

Stored size: 270 Bytes

Contents

module RestApiClient
  class UnauthorizedException < StandardError

    attr_accessor :errors

    def initialize(errors)
      super 'You are not allowed to perform this action. Maybe you forgot to pass the authorization token?'
      @errors = errors
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rest-api-client-0.1.7 lib/rest/api/exceptions/unauthorized_exception.rb
rest-api-client-0.1.6 lib/rest/api/exceptions/unauthorized_exception.rb
rest-api-client-0.1.5 lib/rest/api/exceptions/unauthorized_exception.rb
rest-api-client-0.1.4 lib/rest/api/exceptions/unauthorized_exception.rb
rest-api-client-0.1.3 lib/rest/api/exceptions/unauthorized_exception.rb
rest-api-client-0.1.2 lib/rest/api/exceptions/unauthorized_exception.rb
rest-api-client-0.1.1 lib/rest/api/exceptions/unauthorized_exception.rb