Sha256: 7a537fb83aa585754decc1cbdcca3d29f4b50872473edc6e432ba8a2f608cccb

Contents?: true

Size: 653 Bytes

Versions: 3

Compression:

Stored size: 653 Bytes

Contents

module Alfa
  module Exceptions
    # Route not found
    class Route404 < StandardError; end

    class Route403 < StandardError; end

    class HttpRedirect < StandardError
      attr_reader :url, :code
      def initialize(url, code)
        @url, @code = url, code
      end
    end


    class NoSuchController < StandardError; end

    # Application's config.project_root required
    class E001 < StandardError; end

    # WebApplication's config.document_root required
    class E002 < StandardError; end

    # Href can't be build
    class E003 < StandardError; end

    # Bad str for href format
    class E004 < StandardError; end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
alfa-0.0.8.pre lib/alfa/exceptions.rb
alfa-0.0.7.pre lib/alfa/exceptions.rb
alfa-0.0.6.pre lib/alfa/exceptions.rb