com.cloudbees.sdk
Class AbortException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by 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

Constructor Summary
AbortException()
           
AbortException(String message)
           
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbortException

public AbortException()

AbortException

public AbortException(String message)


Copyright © 2011-2014. All Rights Reserved.