Hello!
I see in the documentation of transactions that `Sequel::Rollback`
exception will be suppressed without `reraise` option, and any another
exception will not.
But `Database#after_rollback` suppresses any exception, not only
`Sequel::Rollback`.
So, if I have some custom check in transaction and manual conditional
`raise Sequel::Rollback unless valid?` with `after_rollback { return
validation_errors }` — I'll not get any another exception like
`Sequel::MassAssignmentRestriction`.
Can be `Database#after_rollback` called only after `Sequel::Rollback`
exception?
Thanks.
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.