Sha256: 6fd95ae8889c822bcca9a975a6dcf0d7c81dfd7c480ad6ce6476f958a7129c1a

Contents?: true

Size: 514 Bytes

Versions: 26

Compression:

Stored size: 514 Bytes

Contents

module Spider
    class Controller
        
        class NotFound < RuntimeError
            attr_reader :path
            
            def initialize(path)
                @path = path
            end
            
            def to_s
                "NotFound: #{@path}"
            end
        end
        
        class BadRequest < RuntimeError
        end
        
        class Forbidden < RuntimeError
        end
        
        class ControllerError < RuntimeError
        end
        
    end
    
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
spiderfw-0.6.6 lib/spiderfw/controller/controller_exceptions.rb
spiderfw-0.6.5 lib/spiderfw/controller/controller_exceptions.rb
spiderfw-0.6.4 lib/spiderfw/controller/controller_exceptions.rb
spiderfw-0.6.3 lib/spiderfw/controller/controller_exceptions.rb
spiderfw-0.6.2 lib/spiderfw/controller/controller_exceptions.rb
spiderfw-0.6.1 lib/spiderfw/controller/controller_exceptions.rb
spiderfw-0.6.0 lib/spiderfw/controller/controller_exceptions.rb
spiderfw-0.5.19 lib/spiderfw/controller/controller_exceptions.rb
spiderfw-0.5.18 lib/spiderfw/controller/controller_exceptions.rb
spiderfw-0.5.17 lib/spiderfw/controller/controller_exceptions.rb
spiderfw-0.5.16 lib/spiderfw/controller/controller_exceptions.rb
spiderfw-0.5.15 lib/spiderfw/controller/controller_exceptions.rb
spiderfw-0.5.14 lib/spiderfw/controller/controller_exceptions.rb
spiderfw-0.5.13 lib/spiderfw/controller/controller_exceptions.rb
spiderfw-0.5.12 lib/spiderfw/controller/controller_exceptions.rb
spiderfw-0.5.11 lib/spiderfw/controller/controller_exceptions.rb
spiderfw-0.5.10 lib/spiderfw/controller/controller_exceptions.rb
spiderfw-0.5.9 lib/spiderfw/controller/controller_exceptions.rb
spiderfw-0.5.7 lib/spiderfw/controller/controller_exceptions.rb
spiderfw-0.5.6 lib/spiderfw/controller/controller_exceptions.rb