View Source SensitiveData.Redactors.Exception (Sensitive Data v0.1.0)

Functions for redacting exceptions.

Tip

You typically won't need to concern yourself with functions in this module, as SensitiveData.exec/2, SensitiveData.Wrapper.from/2, and friends, will use safe redaction implementations by default.

Summary

Functions

Replaces the exception with a fully redacted exception.

Functions

Replaces the exception with a fully redacted exception.

Example

iex(1)> e = ArgumentError.exception("foo")
%ArgumentError{message: "foo"}
iex(2)> SensitiveData.Redactors.Exception.drop(e)
%SensitiveData.RedactedException{exception_name: ArgumentError}