Skip to content

Update documentation to reflect native agent exceptions #23

@a2geek

Description

@a2geek

The documentation should indicate that the agent currently being used throws an exception instead of exiting the JVM. If a program does a try/catch block around the System.exit call, this causes issues and likely confusion when simple tests "fail".

Instead of this...

try {
    // Do something
    System.exit(0);
} catch (Throwable t) {
    t.printStackTrace();
    System.exit(1);
}

... do this...

int exitCode = 0;
try {
    // Do something
} catch (Throwable t) {
    t.printStackTrace();
    exitCode = 1;
}
System.exit(exitCode);

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions