Class BambooSpecsPublishingException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.atlassian.bamboo.specs.api.exceptions.BambooSpecsPublishingException
-
- All Implemented Interfaces:
Serializable
public final class BambooSpecsPublishingException extends RuntimeException
Exception thrown for unsuccessful publishing of Bamboo Specs.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBambooSpecsPublishingException.ErrorTypeKnown possible failure types.
-
Constructor Summary
Constructors Constructor Description BambooSpecsPublishingException(@NotNull RootEntityPropertiesBuilder<?> entityProperties, @Nullable BambooSpecsPublishingException.ErrorType errorType, @Nullable String message, @Nullable String debugMessage, @Nullable Throwable cause)Creates an instance of the exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable ThrowablegetCause()Returns the cause of this throwable ornullif the cause is nonexistent or unknown.@Nullable StringgetDebugMessage()Returns additional message for debugging,nullif not available.@Nullable BambooSpecsPublishingException.ErrorTypegetErrorType()Get the type of encountered error ornullif unknown.@NotNull StringgetMessage()Returns the message of this exception.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
BambooSpecsPublishingException
public BambooSpecsPublishingException(@NotNull @NotNull RootEntityPropertiesBuilder<?> entityProperties, @Nullable @Nullable BambooSpecsPublishingException.ErrorType errorType, @Nullable @Nullable String message, @Nullable @Nullable String debugMessage, @Nullable @Nullable Throwable cause)Creates an instance of the exception.- Parameters:
entityProperties- properties which caused the errorerrorType- type of error (if known)message- error message (if available)debugMessage- additional message of the exception which should be displayed for debug logging (if available)cause- underlying exception that caused the error (if available)
-
-
Method Detail
-
getErrorType
@Nullable public @Nullable BambooSpecsPublishingException.ErrorType getErrorType()
Get the type of encountered error ornullif unknown.
-
getMessage
@NotNull public @NotNull String getMessage()
Returns the message of this exception.- Overrides:
getMessagein classThrowable
-
getDebugMessage
@Nullable public @Nullable String getDebugMessage()
Returns additional message for debugging,nullif not available.
-
-