BeamPatch.InvalidOverrideError exception (beam_patch v0.2.0)

View Source

An error that is raised when an @override is used in an invalid way.

Fields

  • :reason (reason/0) - The reason for the error.

Summary

Types

The reason for the error.

t()

Types

reason()

@type reason() ::
  :unresolved_override
  | {:invalid_options, [invalid_option :: atom()]}
  | {:no_base_implementation,
     [{function_name :: atom(), arity :: non_neg_integer()}]}

The reason for the error.

  • :unresolved_override - The @override was found without a function definition.
  • {:invalid_options, [invalid_option]} - The @override was used with invalid options.
  • {:no_base_implementation, [{name, arity}]} - No base implementation was found for the function

t()

@type t() :: %BeamPatch.InvalidOverrideError{__exception__: true, reason: reason()}