Ithibati.Ceremony (Ithibati v0.6.2)

Copy Markdown View Source

Lists the failure-code vocabulary produced by Ithibati's server and browser integration.

The browser hook delivers codes as strings in ithibati:failed events. codes/0 returns the fixed codes as atoms so applications can verify their message coverage:

for code <- Ithibati.Ceremony.codes() do
  refute message(to_string(code)) =~ "Something went wrong"
end

The list does not include application-defined handler errors or the suffixed codes represented by families/0. Handle those separately or provide a fallback. Handling failures describes each code.

Summary

Functions

Every code this library can send, sorted.

Returns the prefixes of error-code families whose suffixes vary.

Functions

codes()

Every code this library can send, sorted.

families()

Returns the prefixes of error-code families whose suffixes vary.

:http represents codes such as http_404; :missing_data represents codes such as missing_data_registration_url. Match these by prefix or handle them with a fallback.