-
Notifications
You must be signed in to change notification settings - Fork 22
Exceptions
lyang edited this page Mar 17, 2013
·
2 revisions
BraintreeRails has two specific Exceptions
This got thrown when (save|create|update)! failed validation.
This is the record that failed validation.
This is the joined full messages of all the errors.
This got thrown when trying to call not supported CRUD methods on certain models. For example
# Throws BraintreeRails::NotSupportedApiException because Plan is a readonly model.
BraintreeRails::Plan.create(:plan_id => 'plan')