org.apache.oozie.command
Class PreconditionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.oozie.XException
              extended by org.apache.oozie.command.PreconditionException
All Implemented Interfaces:
Serializable

public class PreconditionException
extends XException

See Also:
Serialized Form

Constructor Summary
PreconditionException(ErrorCode errorCode, Object... params)
          Create a verifyXCommand exception for verify conditions purposes.
PreconditionException(XException cause)
          Create a verifyXCommand exception for verify conditions purposes.
 
Method Summary
 
Methods inherited from class org.apache.oozie.XException
getErrorCode
 
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

PreconditionException

public PreconditionException(XException cause)
Create a verifyXCommand exception for verify conditions purposes.

Parameters:
cause - the XException cause.

PreconditionException

public PreconditionException(ErrorCode errorCode,
                             Object... params)
Create a verifyXCommand exception for verify conditions purposes.

Parameters:
errorCode - error code.
params - parameters for the error code message template.


Copyright © 2013 Apache Software Foundation. All Rights Reserved.