com.ibm.websphere.workarea

Class NoSuchPartitionException

  1. java.lang.Object
  2. extended byjava.lang.Throwable
  3. extended byjava.lang.Exception
  4. extended bycom.ibm.websphere.workarea.NoSuchPartitionException
All implemented interfaces:
java.io.Serializable

  1. public class NoSuchPartitionException
  2. 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

Constructor and Description
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

  1. public NoSuchPartitionException( )

NoSuchPartitionException

  1. public NoSuchPartitionException( java.lang.String s)