Package com.atlassian.confluence.upgrade
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UpgradeException(String message)
Deprecated.since 7.9.0 use UseUpgradeException(String, URL)
UpgradeException(String message, Throwable cause)
Deprecated.since 7.9.0 use UseUpgradeException(String, URL, Throwable)
UpgradeException(String message, URL kbURL)
Creates a new UpgradeException for given message and URL for the Modern Johnson UI.UpgradeException(String message, URL kbURL, boolean fatal)
Creates a new UpgradeException for given message, URL and cause for the Modern Johnson UI.UpgradeException(String message, URL kbURL, Throwable cause)
Creates a new UpgradeException for given message, URL and cause for the Modern Johnson UI.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 fatalUpgradeException(String message, Collection<UpgradeError> upgradeErrors)
Creates a new UpgradeException with given message for a list of upgradeErrors.UpgradeException(Throwable cause)
Creates a new UpgradeException for given cause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URL
getKbURL()
Collection<UpgradeError>
getUpgradeErrors()
String
getUpgradeErrorUiMessage()
boolean
isFatal()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
UpgradeException
public UpgradeException(String message, Collection<UpgradeError> upgradeErrors)
Creates a new UpgradeException with given message for a list of upgradeErrors.- Parameters:
message
- String messageupgradeErrors
- Collection of UpgradeErrors- Since:
- 7.9.0
-
UpgradeException
@Deprecated public UpgradeException(String message)
Deprecated.since 7.9.0 use UseUpgradeException(String, URL)
Creates a new UpgradeException for given message.- Parameters:
message
- String message
-
UpgradeException
@Deprecated public UpgradeException(String message, Throwable cause)
Deprecated.since 7.9.0 use UseUpgradeException(String, URL, Throwable)
Creates a new UpgradeException for given message and cause.- Parameters:
message
- Stringcause
- 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
- StringkbURL
- 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
- StringkbURL
- URLfatal
- 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
- StringkbURL
- URLcause
- 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
- StringkbURL
- URLcause
- Throwablefatal
- boolean set to true to make this exception generate a fatal Johnson event- Since:
- 7.9.0
-
-
Method Detail
-
getUpgradeErrors
public Collection<UpgradeError> getUpgradeErrors()
-
getUpgradeErrorUiMessage
public String getUpgradeErrorUiMessage()
-
getKbURL
public URL getKbURL()
-
isFatal
public boolean isFatal()
-
-