org.apache.oozie.client
Class OozieClientException

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

public class OozieClientException
extends Exception

Exception thrown by the OozieClient.

See Also:
Serialized Form

Field Summary
static String AUTHENTICATION
           
static String INVALID_FILTER
           
static String INVALID_INPUT
           
static String IO_ERROR
           
static String OTHER
           
static String UNSUPPORTED_VERSION
           
 
Constructor Summary
OozieClientException(String errorCode, String message)
          Create an exception.
OozieClientException(String errorCode, String message, Throwable cause)
          Create an exception with a cause.
OozieClientException(String errorCode, Throwable cause)
          Create an exception with a cause.
 
Method Summary
 String getErrorCode()
          Return the exception error code.
 String toString()
          Return the string representatio of the exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNSUPPORTED_VERSION

public static final String UNSUPPORTED_VERSION
See Also:
Constant Field Values

IO_ERROR

public static final String IO_ERROR
See Also:
Constant Field Values

INVALID_FILTER

public static final String INVALID_FILTER
See Also:
Constant Field Values

INVALID_INPUT

public static final String INVALID_INPUT
See Also:
Constant Field Values

OTHER

public static final String OTHER
See Also:
Constant Field Values

AUTHENTICATION

public static final String AUTHENTICATION
See Also:
Constant Field Values
Constructor Detail

OozieClientException

public OozieClientException(String errorCode,
                            String message)
Create an exception.

Parameters:
errorCode - error code.
message - error message.

OozieClientException

public OozieClientException(String errorCode,
                            Throwable cause)
Create an exception with a cause.

Parameters:
errorCode - error code.
cause - exception cause.

OozieClientException

public OozieClientException(String errorCode,
                            String message,
                            Throwable cause)
Create an exception with a cause.

Parameters:
errorCode - error code.
message - error message.
cause - exception cause.
Method Detail

getErrorCode

public String getErrorCode()
Return the exception error code.

Returns:
the exception error code.

toString

public String toString()
Return the string representatio of the exception.

Overrides:
toString in class Throwable
Returns:
the string representatio of the exception.


Copyright © 2013 Apache Software Foundation. All Rights Reserved.