Class ServerErrorsHandle
java.lang.Object
nl.pim16aap2.lightkeeper.framework.ServerErrorsHandle
Handle for the always-on server-error capture.
Unlike EventCaptureHandle there is nothing to register or close: capture starts when the agent
plugin loads and stays active for the server's lifetime. This handle is a view over that capture buffer.
In shared-server mode the extension clears the buffer at the end of every test method, so each test observes the errors of its own window (the first test's window also covers server boot).
-
Method Summary
Modifier and TypeMethodDescriptionclear()Clears all captured server errors.Gets all server errors and warnings captured since server boot or the last clear.
-
Method Details
-
getCaptured
Gets all server errors and warnings captured since server boot or the last clear.- Returns:
- List of captured server error snapshots, structured log events first, then raw stderr detections.
-
clear
Clears all captured server errors.- Returns:
- This handle for fluent chaining.
-