Sha256: dc35ae5035204d9ba48bb715da66d3b19b88c921a5a220dc7398e979b04e3251

Contents?: true

Size: 965 Bytes

Versions: 97

Compression:

Stored size: 965 Bytes

Contents

class Testing
  # Ignore yields outside methods
  raise NoMethodError, "reason"

  # Should document this
  def mymethod
    raise ArgumentError, "Argument is missing"
  end

  # Don't document this
  def mymethod2
    raise(a)
  end

  # Don't document this (docstring takes precedence)
  # @raise [A]
  def mymethod3
    raise SomethingElse
  end

  # Only document the first one (limitation of exc handler)
  def mymethod4
    raise(A)
    raise B, "Argument", somethingelse
  end

  def mymethod5
    raise YARD::Parser::UndocumentableError
  end

  def mymethod6
    raise YARD::Handlers.constants("test")
  end

  def mymethod7
    raise MethodCall('argument')
  end

  def mymethod8
    raise ExceptionClass.new('blah')
  end

  def mymethod9
    obj.raise IgnoreMe
	obj.raise(IgnoreMe)
  end

  def mymethod10
    raise ArgumentError 'Message' # actually a method call
  end

  def mymethod11
    raise foo('bar')
  end

  def mymethod12
    raise
  end
end

Version data entries

97 entries across 78 versions & 10 rubygems

Version Path
mango-0.7.0 vendor/bundler/ruby/2.0.0/gems/yard-0.8.7.3/spec/handlers/examples/exception_handler_001.rb.txt
climine-0.0.2 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/spec/handlers/examples/exception_handler_001.rb.txt
climine-0.0.1 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/spec/handlers/examples/exception_handler_001.rb.txt
yard-0.8.7.3 spec/handlers/examples/exception_handler_001.rb.txt
yard-0.8.7.2 spec/handlers/examples/exception_handler_001.rb.txt
candlepin-api-0.4.0 bundle/ruby/1.9.1/gems/yard-0.8.7/spec/handlers/examples/exception_handler_001.rb.txt
candlepin-api-0.4.0 bundle/ruby/1.8/gems/yard-0.8.7/spec/handlers/examples/exception_handler_001.rb.txt
candlepin-api-0.4.0 bundle/ruby/gems/yard-0.8.7/spec/handlers/examples/exception_handler_001.rb.txt
yard-0.8.7.1 spec/handlers/examples/exception_handler_001.rb.txt
yard-0.8.7 spec/handlers/examples/exception_handler_001.rb.txt
challah-1.0.0 vendor/bundle/gems/yard-0.8.6.1/spec/handlers/examples/exception_handler_001.rb.txt
yard-0.8.6.2 spec/handlers/examples/exception_handler_001.rb.txt
challah-1.0.0.beta3 vendor/bundle/gems/yard-0.8.6.1/spec/handlers/examples/exception_handler_001.rb.txt
challah-1.0.0.beta3 vendor/bundle/gems/yard-0.8.5.2/spec/handlers/examples/exception_handler_001.rb.txt
challah-1.0.0.beta3 vendor/bundle/gems/yard-0.8.6/spec/handlers/examples/exception_handler_001.rb.txt
sidekiq-statsd-0.1.1 vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/handlers/examples/exception_handler_001.rb.txt
sidekiq-statsd-0.1.0 vendor/ruby/1.9.1/gems/yard-0.8.6.1/spec/handlers/examples/exception_handler_001.rb.txt
yard-0.8.6.1 spec/handlers/examples/exception_handler_001.rb.txt
challah-1.0.0.beta2 vendor/bundle/gems/yard-0.8.5.2/spec/handlers/examples/exception_handler_001.rb.txt
challah-1.0.0.beta2 vendor/bundle/gems/yard-0.8.6/spec/handlers/examples/exception_handler_001.rb.txt