Workspace ManagerconceptAPI Reference

Choose documentation 2

latest

Current version

latest
English

Unreleased LibTmux has not been released. Its API may change during development. This site's structure and URLs may change too.

Workspace Manager: API Reference

LibTmux::Workspace::X::Load::report_data

sub report_data($self)

For Load exceptions, return a detached, JSON-safe report hashref. The primary cause and each cleanup error become records with class, message, known path, and dispatched (null means unknown). Core creation/load causes retain their cause chain; a repeated exception is marked cycle. Process results retain exit code, signal, raw wait status, and bounded stdout and stderr as stdout_base64 and stderr_base64 using MIME::Base64. This diagnostic encoding does not serialize entity graphs or arbitrary exception internals. Other exceptions retain their class and string message. No I/O occurs; editing the export cannot change "report" or "cause".

Description#

use JSON::PP ();
my $data = $error->report_data;
say JSON::PP->new->canonical->encode($data);

The packaged libtmux-workspace CLI uses this export. Use "report" when recovery needs the original typed exceptions rather than diagnostic data.

Methods#

Guides#

Pages that discuss report_data.

Esc

Type to search.

Reference previewOpen reference