Cachex v3.0.1 Cachex.ExecutionError exception View Source

Minor error implementation for all Cachex-specific errors.

This module allows users caton catch Cachex errors in a separate block to other errors/exceptions rather than using stdlib errors.

iex> try do
...>   Cachex.put!(:cache, "key", "value")
...> rescue
...>   e in Cachex.ExecutionError -> e
...> end

The default error message should always be overridden with a long error formas displayed inside Cachex.Errors.

Link to this section Summary

Functions

Callback implementation for Exception.exception/1

Callback implementation for Exception.message/1

Link to this section Functions

Callback implementation for Exception.exception/1.

Callback implementation for Exception.message/1.