class

Pika::ValidationError

Inherits Pika::Error < Exception < Reference < Object

Constructors

from_clear_model(model : ::Clear::Model) : self

Build a Pika::ValidationError from a Clear model whose save failed.

Usage: user = User.new(email: declared_params.email) unless user.save raise Pika::ValidationError.from_clear_model(user) end

Source