--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: With no args, matches if any error is raised. With a named error, matches only if that specific error is raised. With a named error and messsage specified as a String, matches only if both match. With a named error and messsage specified as a Regexp, matches only if both match.
- !ruby/struct:SM::Flow::H 
  level: 2
  text: Examples
- !ruby/struct:SM::Flow::VERB 
  body: "  lambda { do_something_risky }.should raise_error\n  lambda { do_something_risky }.should raise_error(PoorRiskDecisionError)\n  lambda { do_something_risky }.should raise_error(PoorRiskDecisionError, &quot;that was too risky&quot;)\n  lambda { do_something_risky }.should raise_error(PoorRiskDecisionError, /oo ri/)\n\n  lambda { do_something_risky }.should_not raise_error\n  lambda { do_something_risky }.should_not raise_error(PoorRiskDecisionError)\n  lambda { do_something_risky }.should_not raise_error(PoorRiskDecisionError, &quot;that was too risky&quot;)\n  lambda { do_something_risky }.should_not raise_error(PoorRiskDecisionError, /oo ri/)\n"
full_name: Spec::Matchers#raise_error
is_singleton: false
name: raise_error
params: |
  should raise_error()
  should raise_error(NamedError)
  should raise_error(NamedError, String)
  should raise_error(NamedError, Regexp)
  should_not raise_error()
  should_not raise_error(NamedError)
  should_not raise_error(NamedError, String)
  should_not raise_error(NamedError, Regexp)

visibility: public
