Parent

Methods

Class/Module Index [+]

Quicksearch

Mocha::ExpectationErrorFactory

Attributes

exception_class[RW]

Public Class Methods

build(message = nil, backtrace = []) click to toggle source
# File lib/mocha/expectation_error_factory.rb, line 8
def build(message = nil, backtrace = [])
  self.exception_class ||= ExpectationError
  exception = exception_class.new(message)
  filter = BacktraceFilter.new
  exception.set_backtrace(filter.filtered(backtrace))
  exception
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.