#5 ✓resolved
Rob Sanheim

InvalidTransition exception should be a runtime error

Reported by Rob Sanheim | August 13th, 2008 @ 05:43 PM

InvalidTransition should inherit from RuntimeError, and not Exception, right? Since it descends from Exception, it blows up test suites hard in the middle of the run instead of just being captured as an error. Also, this would would break the normal rescue RuntimeError => e since Exception is the parent of RuntimeError.

Declaration can be seen here:

http://github.com/rubyist/aasm/s...

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Library for adding state machines to Ruby classes. Includes persistence layers for things like ActiveRecord. Formerly known as acts_as_state_machine.

People watching this ticket

Pages