PtcRunner.Lisp.Java.Condition (PtcRunner v0.14.0)

Copy Markdown View Source

Bounded recoverable failure produced by closed Java dispatch.

Conditions carry manifest identities and inert diagnostic metadata only. Raw handler values, exceptions, and stacktraces never become Lisp data.

Summary

Types

category()

@type category() ::
  :unsupported_java_class
  | :unsupported_java_member
  | :java_arity_error
  | :java_type_error
  | :java_domain_error
  | :invalid_java_string
  | :java_handler_contract_error

t()

@type t() :: %PtcRunner.Lisp.Java.Condition{
  category: category(),
  details: map(),
  message: String.t(),
  overload_id: atom() | nil,
  reference_id: atom() | nil
}

Functions

new(category, reference_id, overload_id, message, details \\ %{})

@spec new(category(), atom() | nil, atom() | nil, String.t(), map()) :: t()