com.sun.sgs.app
Class ObjectIOException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.sun.sgs.app.ObjectIOException
All Implemented Interfaces:
ExceptionRetryStatus, Serializable

public class ObjectIOException
extends RuntimeException
implements ExceptionRetryStatus

Thrown when an operation fails because of an I/O failure when attempting to access a managed object. Typically the exception returned by the getCause method will be the IOException that caused the failure.

See Also:
Serialized Form

Constructor Summary
ObjectIOException(String message, boolean shouldRetry)
          Creates an instance of this class with the specified detail message and whether an operation that throws this exception should be retried.
ObjectIOException(String message, Throwable cause, boolean shouldRetry)
          Creates an instance of this class with the specified detail message, the cause, and whether an operation that throws this exception should be retried.
 
Method Summary
 boolean shouldRetry()
          Provides information about whether an operation that threw this exception should be retried.
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ObjectIOException

public ObjectIOException(String message,
                         boolean shouldRetry)
Creates an instance of this class with the specified detail message and whether an operation that throws this exception should be retried.

Parameters:
message - the detail message or null
shouldRetry - whether an operation that throws this exception should be retried

ObjectIOException

public ObjectIOException(String message,
                         Throwable cause,
                         boolean shouldRetry)
Creates an instance of this class with the specified detail message, the cause, and whether an operation that throws this exception should be retried.

Parameters:
message - the detail message or null
cause - the cause or null
shouldRetry - whether an operation that throws this exception should be retried
Method Detail

shouldRetry

public boolean shouldRetry()
Provides information about whether an operation that threw this exception should be retried.

This implementation returns the value that was specified for the shouldRetry parameter in the constructor.

Specified by:
shouldRetry in interface ExceptionRetryStatus
Returns:
true if the operation should be retried, else false

Project Darkstar, Version 0.9.9.6
2009-05-08 15:39:40

Copyright © 2007-2009 Sun Microsystems, Inc. All rights reserved