Ruby on Rails Thursday, November 29, 2012

On Thu, Nov 29, 2012 at 4:11 AM, Jordon Bedwell <envygeeks@gmail.com> wrote:
> raise(MyClass::APIParseError.new("001", :XML))
> #=> MyClass::MyError: 001: Problem parsing XML

This would actually display: "MyClass::APIParseError" I had a
misspelling since I didn't run it through an REPL to get the output I
just wrote it so of course typos can happen but it will show you the
right error class when you output it.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment