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, knownpath, anddispatched(null means unknown). Core creation/load causes retain their cause chain; a repeated exception is markedcycle. Process results retain exit code, signal, raw wait status, and bounded stdout and stderr asstdout_base64andstderr_base64using 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-workspaceCLI uses this export. Use"report"when recovery needs the original typed exceptions rather than diagnostic data.Methods#
Guides#
Pages that discuss report_data.