org.netbeans.modules.autoupdate.services 1.20.1

org.netbeans.api.autoupdate
Class OperationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.netbeans.api.autoupdate.OperationException
All Implemented Interfaces:
Serializable

public final class OperationException
extends Exception

Thrown to indicate that operation failed

See Also:
OperationSupport, InstallSupport, Serialized Form

Nested Class Summary
static class OperationException.ERROR_TYPE
          Define the failure
 
Constructor Summary
OperationException(OperationException.ERROR_TYPE error)
          Constructs an OperationException
OperationException(OperationException.ERROR_TYPE error, Exception x)
          Constructs an OperationException
OperationException(OperationException.ERROR_TYPE error, String message)
          Constructs an OperationException
 
Method Summary
 OperationException.ERROR_TYPE getErrorType()
           
 String getLocalizedMessage()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, 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

OperationException

public OperationException(OperationException.ERROR_TYPE error)
Constructs an OperationException

Parameters:
error - the definition of failure

OperationException

public OperationException(OperationException.ERROR_TYPE error,
                          Exception x)
Constructs an OperationException

Parameters:
error - the definition of failure
x - the cause (x.getLocalizedMessage is saved for later retrieval by the getLocalizedMessage() method)

OperationException

public OperationException(OperationException.ERROR_TYPE error,
                          String message)
Constructs an OperationException

Parameters:
error - the definition of failure
message - (is saved for later retrieval by the getLocalizedMessage() method)
Method Detail

getLocalizedMessage

public String getLocalizedMessage()
Overrides:
getLocalizedMessage in class Throwable

getErrorType

public OperationException.ERROR_TYPE getErrorType()
Returns:
the definition of failure

org.netbeans.modules.autoupdate.services 1.20.1

Built on April 28 2011.  |  Portions Copyright 1997-2011 Sun Microsystems, Inc. All rights reserved.