Class UpgradeException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.atlassian.confluence.upgrade.UpgradeException
All Implemented Interfaces:
Serializable

public class UpgradeException extends Exception
See Also:
  • Constructor Details

    • UpgradeException

      public UpgradeException(String message, Collection<UpgradeError> upgradeErrors)
      Creates a new UpgradeException with given message for a list of upgradeErrors.
      Parameters:
      message - String message
      upgradeErrors - Collection of UpgradeErrors
      Since:
      7.9.0
    • UpgradeException

      @Deprecated public UpgradeException(String message)
      Deprecated.
      since 7.9.0 use Use UpgradeException(String, URL)
      Creates a new UpgradeException for given message.
      Parameters:
      message - String message
    • UpgradeException

      @Deprecated public UpgradeException(String message, Throwable cause)
      Deprecated.
      Creates a new UpgradeException for given message and cause.
      Parameters:
      message - String
      cause - Throwable
    • UpgradeException

      public UpgradeException(Throwable cause)
      Creates a new UpgradeException for given cause.
      Parameters:
      cause - Throwable
      Since:
      7.9.0
    • UpgradeException

      public UpgradeException(String message, URL kbURL)
      Creates a new UpgradeException for given message and URL for the Modern Johnson UI.
      Parameters:
      message - String
      kbURL - URL
      Since:
      7.9.0
    • UpgradeException

      public UpgradeException(String message, URL kbURL, boolean fatal)
      Creates a new UpgradeException for given message, URL and cause for the Modern Johnson UI.
      Parameters:
      message - String
      kbURL - URL
      fatal - boolean set to true to make this exception generate a fatal Johnson event
      Since:
      7.9.0
    • UpgradeException

      public UpgradeException(String message, URL kbURL, Throwable cause)
      Creates a new UpgradeException for given message, URL and cause for the Modern Johnson UI.
      Parameters:
      message - String
      kbURL - URL
      cause - Throwable
      Since:
      7.9.0
    • UpgradeException

      public UpgradeException(String message, URL kbURL, Throwable cause, boolean fatal)
      Creates a new UpgradeException for given message, URL and cause for the Modern Johnson UI that allows it to be fatal
      Parameters:
      message - String
      kbURL - URL
      cause - Throwable
      fatal - boolean set to true to make this exception generate a fatal Johnson event
      Since:
      7.9.0
  • Method Details

    • getUpgradeErrors

      public Collection<UpgradeError> getUpgradeErrors()
    • getUpgradeErrorUiMessage

      public String getUpgradeErrorUiMessage()
    • getKbURL

      public URL getKbURL()
    • isFatal

      public boolean isFatal()