Exceptional v2.1.3 Exceptional.Pipe View Source

This module overloads the basic |> operator, and as such should be used with extreme caution (if ever).

Convenience uses

use Exceptional.Pipe, include: :overloaded_pipe

Link to this section Summary

Link to this section Functions

Link to this macro

maybe_exception |> continue View Source (macro)

Examples

iex> use Exceptional.Pipe, include: :overloaded_pipe
...> 1 |> fn x -> x * 100 end.()
100

iex> use Exceptional.Pipe, include: :overloaded_pipe
...> ArgumentError.exception("plain error")
...> |> fn x -> x * 100 end.()
%ArgumentError{message: "plain error"}