Sha256: 3c479c0f2fc198d69f5a6b26ef27122755e20e157692d636bb93aaa1128ed546

Contents?: true

Size: 1.18 KB

Versions: 14

Compression:

Stored size: 1.18 KB

Contents

module Kaya
  module Error
    # Raised when there is an error related to Suites.
    class Suite < StandardError
      attr_reader :suite_name

      def initialize(suite_name, message=nil)
        @suite_name = suite_name
        message = message
        super(message)
      end
    end

    # Raised when there is an error related to Results.
    class Result < StandardError
      attr_reader :id

      def initialize(id, message=nil)
        @id = id
        message = message
        super(message)
      end

    end

    class KayaFile < StandardError
      def initialize file_path
        super("Could not find '#{file_path} file" )
      end
    end

    class KayaDir < StandardError
      def initialize file_path
        super("Could not find '#{file_path}' dir")
      end
    end

    # Raised when there is an error related to Results
    class CucumberYML < StandardError

      def initialize()
        super("Could not find cucumber.yml file to get test suites from")
      end

    end

    # Raised when there is an error related to Help.
    class Help < StandardError
       def initialize(message=nil)
        message = message
        super(message)
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
kaya-0.0.14 lib/kaya/error/errors.rb
kaya-0.0.13 lib/kaya/error/errors.rb
kaya-0.0.12 lib/kaya/error/errors.rb
kaya-0.0.11 lib/kaya/error/errors.rb
kaya-0.0.10 lib/kaya/error/errors.rb
kaya-0.0.9 lib/kaya/error/errors.rb
kaya-0.0.8 lib/kaya/error/errors.rb
kaya-0.0.7 lib/kaya/error/errors.rb
kaya-0.0.6 lib/kaya/error/errors.rb
kaya-0.0.5 lib/kaya/error/errors.rb
kaya-0.0.4 lib/kaya/error/errors.rb
kaya-0.0.3 lib/kaya/error/errors.rb
kaya-0.0.2 lib/kaya/error/errors.rb
kaya-0.0.1 lib/kaya/error/errors.rb