module ApiRegulator class ValidationError < StandardError attr_reader :errors, :details def initialize(errors) @errors = errors @details = errors.messages super("Validation failed with errors, see details") end end end