Enum Class SandboxErrorCode

java.lang.Object
java.lang.Enum<SandboxErrorCode>
io.agentscope.harness.agent.sandbox.SandboxErrorCode
All Implemented Interfaces:
Serializable, Comparable<SandboxErrorCode>, Constable

public enum SandboxErrorCode extends Enum<SandboxErrorCode>
Error codes for sandbox operations, used in SandboxException and its subclasses.
  • Enum Constant Details

    • EXEC_NONZERO

      public static final SandboxErrorCode EXEC_NONZERO
      Command exited with a non-zero exit code.
    • EXEC_TIMEOUT

      public static final SandboxErrorCode EXEC_TIMEOUT
      Command execution timed out.
    • WORKSPACE_START_ERROR

      public static final SandboxErrorCode WORKSPACE_START_ERROR
      Failed to start the workspace store.
    • WORKSPACE_STOP_ERROR

      public static final SandboxErrorCode WORKSPACE_STOP_ERROR
      Failed to stop/persist the workspace store.
    • WORKSPACE_ARCHIVE_READ_ERROR

      public static final SandboxErrorCode WORKSPACE_ARCHIVE_READ_ERROR
      Failed to read or parse a workspace archive (tar).
    • WORKSPACE_ARCHIVE_WRITE_ERROR

      public static final SandboxErrorCode WORKSPACE_ARCHIVE_WRITE_ERROR
      Failed to create a workspace archive (tar).
    • SNAPSHOT_PERSIST_ERROR

      public static final SandboxErrorCode SNAPSHOT_PERSIST_ERROR
      Failed to persist a snapshot.
    • SNAPSHOT_RESTORE_ERROR

      public static final SandboxErrorCode SNAPSHOT_RESTORE_ERROR
      Failed to restore a snapshot.
    • SNAPSHOT_NOT_RESTORABLE

      public static final SandboxErrorCode SNAPSHOT_NOT_RESTORABLE
      Snapshot does not exist or is not restorable.
    • INVALID_MANIFEST_PATH

      public static final SandboxErrorCode INVALID_MANIFEST_PATH
      A manifest entry contains an invalid or unsafe path.
    • CONFIGURATION_ERROR

      public static final SandboxErrorCode CONFIGURATION_ERROR
      Invalid or missing sandbox configuration.
  • Method Details

    • values

      public static SandboxErrorCode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SandboxErrorCode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null