com.ibm.websphere.workarea

Class PartitionAlreadyExistsException

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

  1. public class PartitionAlreadyExistsException
  2. extends java.lang.Exception
A PartitionAlreadyExistsException exception indicates that the work area partition with the given name a user tried to create already exists. A Partition name must be unique. For example, if the partition "myPartitionName" alread exists, and a user tries to create a partition with this name, a PartitionAlreadyExistsException will be thrown:


              . . .

 String myPar = "myPartitionName";
 try{
     //See the  UserWorkArea interface and the
     // WorkAreaPartitionManager interface.
     UserWorkArea myPartition = workAreaPartitionManager.createWorkAreaPartition(myPar,properties);
 }
 catch(PartitionAlreadyExistsException e){  
     System.out.println("Partition: " + myPar + " already exists");
              . . .
 }
              . . .
 

See Also:
WorkAreaPartitionManager, Serialized Form

Constructor Summary

Constructor and Description
PartitionAlreadyExistsException()
PartitionAlreadyExistsException(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

PartitionAlreadyExistsException

  1. public PartitionAlreadyExistsException( )

PartitionAlreadyExistsException

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