Class ProvisionException

All Implemented Interfaces:
Serializable

public class ProvisionException extends CoreException
A checked exception indicating a recoverable error occurred while provisioning. The status provides a further description of the problem.
Since:
2.0
See Also:
Restriction:
This class is not intended to be subclassed by clients.
  • Field Details

    • INTERNAL_ERROR

      public static final int INTERNAL_ERROR
      Status code constant (value 1) for an uncategorized error.
      See Also:
    • REPOSITORY_NOT_FOUND

      public static final int REPOSITORY_NOT_FOUND
      Status code constant (value 1000) indicating a repository unexpectedly does not exist.
      See Also:
    • REPOSITORY_EXISTS

      public static final int REPOSITORY_EXISTS
      Status code constant (value 1001) indicating a repository unexpectedly exists.
      See Also:
    • REPOSITORY_FAILED_READ

      public static final int REPOSITORY_FAILED_READ
      Status code constant (value 1002) indicating a repository could not be read
      See Also:
    • REPOSITORY_FAILED_WRITE

      public static final int REPOSITORY_FAILED_WRITE
      Status code constant (value 1003) indicating a failure occurred while writing to a repository.
      See Also:
    • REPOSITORY_READ_ONLY

      public static final int REPOSITORY_READ_ONLY
      Status code constant (value 1004) indicating a repository could not be written because it is a read-only repository.
      See Also:
    • REPOSITORY_UNKNOWN_TYPE

      public static final int REPOSITORY_UNKNOWN_TYPE
      Status code constant (value 1005) indicating an attempt was made to create or access a repository of unknown type.
      See Also:
    • REPOSITORY_INVALID_LOCATION

      public static final int REPOSITORY_INVALID_LOCATION
      Status code constant (value 1006) indicating that a specified repository location is not valid.
      See Also:
    • REPOSITORY_FAILED_AUTHENTICATION

      public static final int REPOSITORY_FAILED_AUTHENTICATION
      Status code constant (value 1007) indicating that there was an authentication error while reading a repository
      See Also:
    • ARTIFACT_NOT_FOUND

      public static final int ARTIFACT_NOT_FOUND
      Status code constant (value 1200) indicating an artifact unexpectedly does not exist.
      See Also:
    • ARTIFACT_EXISTS

      public static final int ARTIFACT_EXISTS
      Status code constant (value 1201) indicating an artifact unexpectedly already exists.
      See Also:
    • ARTIFACT_INCOMPLETE_SIZING

      public static final int ARTIFACT_INCOMPLETE_SIZING
      Status code constant (value 1202) indicating an artifact's size could not be found.
      See Also:
    • ARTIFACT_MD5_NOT_MATCH

      public static final int ARTIFACT_MD5_NOT_MATCH
      Status code constant (value 1203) indicating an artifact's md5 does not match the expected value.
      Since:
      2.1
      See Also:
  • Constructor Details

    • ProvisionException

      public ProvisionException(IStatus status)
      Creates a new exception with the given status object. The message of the given status is used as the exception message.
      Parameters:
      status - the status object to be associated with this exception
    • ProvisionException

      public ProvisionException(String message)
      Creates a new exception with the given message and a severity of IStatus.ERROR.
      Parameters:
      message - The human-readable problem message
    • ProvisionException

      public ProvisionException(String message, Throwable cause)
      Creates a new exception with the given message and cause, and a severity of IStatus.ERROR.
      Parameters:
      message - The human-readable problem message
      cause - The underlying cause of the exception