Class SandboxException.SnapshotException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.agentscope.harness.agent.sandbox.SandboxException
io.agentscope.harness.agent.sandbox.SandboxException.SnapshotException
- All Implemented Interfaces:
Serializable
- Enclosing class:
- SandboxException
Thrown when a snapshot operation (persist or restore) fails.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.agentscope.harness.agent.sandbox.SandboxException
SandboxException.ExecException, SandboxException.ExecTimeoutException, SandboxException.SandboxConfigurationException, SandboxException.SandboxRuntimeException, SandboxException.SnapshotException, SandboxException.WorkspaceStartException, SandboxException.WorkspaceStopException -
Constructor Summary
ConstructorsConstructorDescriptionSnapshotException(String snapshotId) Creates a snapshot exception for a non-restorable snapshot.SnapshotException(String snapshotId, String message, Throwable cause) Creates a snapshot exception. -
Method Summary
Modifier and TypeMethodDescriptionReturns the snapshot identifier associated with this failure.Methods inherited from class io.agentscope.harness.agent.sandbox.SandboxException
getErrorCode, getOpMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SnapshotException
Creates a snapshot exception.- Parameters:
snapshotId- the snapshot identifiermessage- human-readable descriptioncause- the underlying cause
-
SnapshotException
Creates a snapshot exception for a non-restorable snapshot.- Parameters:
snapshotId- the snapshot identifier
-
-
Method Details
-
getSnapshotId
Returns the snapshot identifier associated with this failure.- Returns:
- snapshot id
-