Exception: ActiveSanction::InvalidArgument

Inherits:
ArgumentError
  • Object
show all
Includes:
Error
Defined in:
lib/active_sanction/error.rb

Overview

A public method was called with something it cannot use: a threshold of 300, a Snapshot whose record_count disagrees with its entities, a name value object built with no value.

This is the "bug in my call" branch, and it is an ::ArgumentError as well as an ActiveSanction::Error so that it reads as one to code that has never heard of this library. Messages are written for whoever has to fix the call, or the record: "limit must be at least 1, got 0" rather than a type name.

Direct Known Subclasses

QueryError

Instance Attribute Summary

Attributes included from Error

#source_id, #status

Method Summary

Methods included from Error

#in_source, #initialize, #retryable?, #to_h