FileDocCategorySizeDatePackage
StoreClosedException.javaAPI DocJavaMail 1.4.33148Tue Nov 17 10:38:12 GMT 2009javax.mail

StoreClosedException

public class StoreClosedException extends MessagingException
This exception is thrown when a method is invoked on a Messaging object and the Store that owns that object has died due to some reason. This exception should be treated as a fatal error; in particular any messaging object belonging to that Store must be considered invalid.

The connect method may be invoked on the dead Store object to revive it.

The getMessage() method returns more detailed information about the error that caused this exception.

author
John Mani

Fields Summary
private transient Store
store
private static final long
serialVersionUID
Constructors Summary
public StoreClosedException(Store store)
Constructor

param
store The dead Store object


       	        
       
	this(store, null);
    
public StoreClosedException(Store store, String message)
Constructor

param
store The dead Store object
param
message The detailed error message

	super(message);
	this.store = store;
    
Methods Summary
public javax.mail.StoregetStore()
Returns the dead Store object

	return store;