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,ErrorCodeException
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
ConstructorsConstructorDescriptionCancelException(String message, int status) CancelException(String message, Throwable cause, int status) -
Method Summary
Modifier and TypeMethodDescriptionintReturns 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.- Specified by:
getErrorCodein interfaceErrorCodeException- Returns:
- HTTP error code
-