The sentences shown for Ash's own errors, which carry no message of their own.
Ash builds the text of these errors from code names: a missing
delivery_date prints as "attribute delivery_date is required". So each one
gets a written English sentence here. It is the msgid, and
mix gettext.extract finds it for every domain with a gettext block.
| Error | Sentence |
|---|---|
Ash.Error.Changes.Required | is required |
Ash.Error.Changes.InvalidAttribute | is invalid |
Ash.Error.Changes.InvalidArgument | is invalid |
Ash.Error.Forbidden.Policy | You are not allowed to do this |
An error that already has a message keeps it; that message is its msgid. A policy with its own message keeps that message too.
Summary
Functions
Every {error_module, msgid} pair.
The msgid for error, or nil when it already has a message or is not listed.
Every msgid, each once.