rails
Ruby on Rails Exceptions
Exception classes raised by Ruby on Rails, Active Record, and Action Controller. Covers database record lookups, validations, migrations, connection handling, and routing failures.
18 codes
references api.rubyonrails.org/classes/ActiveRecord/RecordNotFound.htmlguides.rubyonrails.org/active_record_validations.html
· All codes 18 codes
- ActionController--InvalidAuthenticityToken ActionController::InvalidAuthenticityToken Raised when a request's CSRF token does not match the token stored in the session, indicating a possible cross-site request forgery.
- ActionController--ParameterMissing ActionController::ParameterMissing Raised by strong parameters' require method when the expected top-level parameter key is not present in the request.
- ActionController--RoutingError ActionController::RoutingError Raised when an incoming request does not match any route defined in config/routes.rb, typically resulting in a 404 response.
- ActiveRecord--ConnectionNotEstablished ActiveRecord::ConnectionNotEstablished Raised when Active Record cannot establish a connection to the configured database.
- ActiveRecord--ConnectionTimeoutError ActiveRecord::ConnectionTimeoutError Raised when a connection could not be obtained from the connection pool within the configured wait timeout.
- ActiveRecord--InvalidForeignKey ActiveRecord::InvalidForeignKey Raised when the database rejects an insert, update, or delete because it violates a foreign key constraint.
- ActiveRecord--IrreversibleMigration ActiveRecord::IrreversibleMigration Raised when rolling back a migration whose change method cannot be automatically inverted.
- ActiveRecord--MigrationError ActiveRecord::MigrationError Base class for errors raised during the execution of Active Record schema migrations.
- ActiveRecord--PendingMigrationError ActiveRecord::PendingMigrationError Raised when the application boots and there are migrations that have not yet been run against the database.
- ActiveRecord--ReadOnlyRecord ActiveRecord::ReadOnlyRecord Raised when attempting to save or destroy a record that has been marked as readonly.
- ActiveRecord--RecordInvalid ActiveRecord::RecordInvalid Raised by save! and create! when a record fails one or more of its validations.
- ActiveRecord--RecordNotDestroyed ActiveRecord::RecordNotDestroyed Raised by destroy! when a destroy is aborted by a before_destroy or around_destroy callback.
- ActiveRecord--RecordNotFound ActiveRecord::RecordNotFound Raised by find and related finder methods when no record matches the given primary key or conditions.
- ActiveRecord--RecordNotSaved ActiveRecord::RecordNotSaved Raised when a save is aborted, typically because a before_save or around_save callback returned false or threw :abort.
- ActiveRecord--RecordNotUnique ActiveRecord::RecordNotUnique Raised when the database rejects an insert or update because it violates a unique constraint or index.
- ActiveRecord--StaleObjectError ActiveRecord::StaleObjectError Raised by optimistic locking when a record has been modified by another transaction since it was loaded.
- ActiveRecord--StatementInvalid ActiveRecord::StatementInvalid Wraps a database adapter error raised while executing a SQL statement, such as a malformed query.
- ActiveRecord--SubclassNotFound ActiveRecord::SubclassNotFound Raised in a single-table inheritance hierarchy when the stored type column names a class that cannot be found.