Package org.artifactory.exception
Class CancelException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.artifactory.exception.CancelException
- All Implemented Interfaces:
Serializable
An exception used to indicate cancellation of an action with an appropriate status error code to return.
Primarily used to reject deployment or retrieval of an item.
- Author:
- Yoav Landman
- See Also:
-
Constructor Summary
ConstructorDescriptionCancelException
(String message, int status) CancelException
(String message, Throwable cause, int status) -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the HTTP error code associated with the cancellation.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CancelException
-
CancelException
-
-
Method Details
-
getErrorCode
public int getErrorCode()Returns the HTTP error code associated with the cancellation.- Returns:
- HTTP error code
-