org.apache.oozie.action
Class ActionExecutorException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.oozie.action.ActionExecutorException
All Implemented Interfaces:
Serializable

public class ActionExecutorException
extends Exception

ActionExecutor exception.

The exception provides information regarding the transient/no-transient/fatal nature of the exception.

See Also:
Serialized Form

Nested Class Summary
static class ActionExecutorException.ErrorType
          Enum that defines the type of error an ActionExecutor has produced.
 
Constructor Summary
ActionExecutorException(ActionExecutorException.ErrorType errorType, String errorCode, String message)
          Create an action executor exception.
ActionExecutorException(ActionExecutorException.ErrorType errorType, String errorCode, String messageTemplate, Object... params)
          Create an action executor exception.
 
Method Summary
 String getErrorCode()
          Return the error code of the exception.
 ActionExecutorException.ErrorType getErrorType()
          Return the error type of the exception.
 
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

ActionExecutorException

public ActionExecutorException(ActionExecutorException.ErrorType errorType,
                               String errorCode,
                               String message)
Create an action executor exception.

Parameters:
errorType - the error type.
errorCode - the error code.
message - the error message.

ActionExecutorException

public ActionExecutorException(ActionExecutorException.ErrorType errorType,
                               String errorCode,
                               String messageTemplate,
                               Object... params)
Create an action executor exception.

If the last parameter is an Exception it is used as the exception cause.

Parameters:
errorType - the error type.
errorCode - the error code.
messageTemplate - the error message.
params - parameters used to create the exception message together with the messageTemplate. If the last parameter is an Exception it is used as the exception cause.
Method Detail

getErrorType

public ActionExecutorException.ErrorType getErrorType()
Return the error type of the exception.

Returns:
the error type of the exception.

getErrorCode

public String getErrorCode()
Return the error code of the exception.

Returns:
the error code of the exception.


Copyright © 2013 Apache Software Foundation. All Rights Reserved.