Module: ActiveAttr::Error

Included in:
DangerousAttributeError, Typecasting::UnknownTypecasterError, UnknownAttributeError
Defined in:
lib/active_attr/error.rb

Overview

All exceptions defined by and raised directly by ActiveAttr include this module, if you want to rescue any of the exceptions raised by the ActiveAttr library, you can rescue Error

Examples:

Rescuing an ActiveAttr error

begin
  Person.new(attributes)
rescue ActiveAttr::Error
  Person.new
end

Since:

  • 0.2.0