BeamPatch.AbstractCodeError exception (beam_patch v0.2.0)

View Source

An error that is raised when abstract code cannot be loaded.

Fields

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

Summary

Types

The reason for the error.

t()

Types

reason()

@type reason() ::
  :beam_file_missing
  | {:unknown_abstract_code_type, atom()}
  | :abstract_code_chunk_missing
  | :compile_info_chunk_missing

The reason for the error.

  • :beam_file_missing - .beam file for the module cannot be found.
  • {:unknown_abstract_code_type, type} - The abstract code type in the beam chunk is unknown.
  • :abstract_code_chunk_missing - The abstract code chunk is missing - usually means the module was not compiled with :debug_info enabled.
  • :compile_info_chunk_missing - The compile info chunk is missing.

t()

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