com.cloudbees.sdk
Class AbortException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.cloudbees.sdk.AbortException
- All Implemented Interfaces:
- Serializable
public class AbortException
- extends RuntimeException
Throw this exception when you are handling an user error gracefully.
When this exception is caught, only the exception message is rendered and not its stack trace.
This is useful for "expected" problems where you do error checks on what the user did, and when
the user can correct the problem without knowing where the problem came from.
This is NOT for the situation where the error is due to some underlying failure or a failure in
the external system. In such case, use other exception types so that the CLI will report the stack
trace. Often those errors cannot be diagnosed by the user himself, and the support staff needs
to see the stack trace to understand the structure of the problem.
- Author:
- Kohsuke Kawaguchi
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
AbortException
public AbortException()
AbortException
public AbortException(String message)
Copyright © 2011-2014. All Rights Reserved.