IBM WebSphere Application ServerTM
Release 8

com.ibm.websphere.workarea
Class NoSuchPartitionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.ibm.websphere.workarea.NoSuchPartitionException
All Implemented Interfaces:
java.io.Serializable

public class NoSuchPartitionException
extends java.lang.Exception

A NoSuchPartitionException exception indicates that the work area partition a user tried to look up doesn't exist. In other words, trying to look up a partition with a name that doesn't exist will throw an exception. For example, if the partition "myPartitionName" doesn't exist, and a user tries to look up a partition with this name, a NoSuchPartitionException will be thrown:


              . . .

 String myPar = "myPartitionName";
 try{
     //See the UserWorkArea interface and the
     //WorkAreaPartitionManager interface.
     UserWorkArea myPartition = workAreaPartitionManager.getWorkAreaPartition(myPar);
 }
 catch(NoSuchPartitionException e){  
     System.out.println("Partition: " + myPar + " doesn't exist");
              . . .
 }
              . . .
 

Version:
1.0
See Also:
Serialized Form

Constructor Summary
NoSuchPartitionException()
           
NoSuchPartitionException(java.lang.String s)
           
 
Method Summary
 
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

NoSuchPartitionException

public NoSuchPartitionException()

NoSuchPartitionException

public NoSuchPartitionException(java.lang.String s)

IBM WebSphere Application ServerTM
Release 8