module

Pika::Clear

Map a Clear DB constraint exception to the appropriate Pika error.

Usage (inside a handler): begin User.create!(email: declared_params.email) rescue e : Exception raise Pika::Clear.map_db_error(e) end

Class methods

map_db_error(e : Exception) : Pika::Error
Source

Nested types