Exception: ActiveSanction::InvalidArgument
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- ActiveSanction::InvalidArgument
- 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.