AWS Lambda Elixir Runtime v0.1.0 ElixirRuntime.Monitor.Error View Source

This module defines the Error struct which is used to communicate runtime errors to the Lambda Runtime Service.

Link to this section Summary

Functions

Build an Error struct from a runtime error

Build an Error from an unknown process-exit reason

Link to this section Types

Link to this type error() View Source
error() :: %ElixirRuntime.Monitor.Error{
  errorMessage: String.t(),
  errorType: String.t(),
  stackTrace: list()
}
Link to this type error_type() View Source
error_type() :: :function | :runtime

Link to this section Functions

Link to this function from(error_type, err, stacktrace) View Source

Build an Error struct from a runtime error

Link to this function from_exit_reason(error_type, reason) View Source
from_exit_reason(error_type(), {atom(), list()}) :: error()
from_exit_reason(error_type(), term()) :: error()

Build an Error from an unknown process-exit reason