Class ProvisioningException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
io.jenkins.plugins.kubevirt.exception.ProvisioningException
All Implemented Interfaces:
Serializable

public class ProvisioningException extends IOException
Exception thrown when VM provisioning fails. This is a checked exception that extends IOException for compatibility with Jenkins APIs.
See Also:
  • Constructor Details

    • ProvisioningException

      public ProvisioningException(String vmName, String message)
      Creates a new ProvisioningException.
      Parameters:
      vmName - The name of the VM that failed to provision
      message - The detailed error message
    • ProvisioningException

      public ProvisioningException(String vmName, String message, ErrorCode errorCode)
      Creates a new ProvisioningException with a specific error code.
      Parameters:
      vmName - The name of the VM that failed to provision
      message - The detailed error message
      errorCode - The specific error code
    • ProvisioningException

      public ProvisioningException(String vmName, String message, Throwable cause)
      Creates a new ProvisioningException with a cause.
      Parameters:
      vmName - The name of the VM that failed to provision
      message - The detailed error message
      cause - The underlying cause
  • Method Details

    • getErrorCode

      public ErrorCode getErrorCode()
      Gets the error code for this exception.
      Returns:
      The error code
    • toString

      public String toString()
      Overrides:
      toString in class Throwable