lib/spec/example/errors.rb



module Spec
  module Example
    class ExamplePendingError < StandardError; end
    
    class NotYetImplementedError < ExamplePendingError
      MESSAGE = "Not Yet Implemented"
      def initialize
        super(MESSAGE)
      end
    end

    class PendingExampleFixedError < StandardError; end
    
    class NoDescriptionError < ArgumentError
      def initialize(kind, location)
        super("No description supplied for #{kind} declared on #{location}")
      end
    end
  end
end