com.ibm.serviceregistry.exception.admin
Class ConstraintException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.ibm.serviceregistry.ServiceRegistryException
              extended by com.ibm.serviceregistry.exception.admin.AdminException
                  extended by com.ibm.serviceregistry.exception.admin.ConstraintException
All Implemented Interfaces:
ServiceRegistryLocalizedMessage, java.io.Serializable

public class ConstraintException
extends AdminException

Base class for constraint exceptions.

See Also:
Serialized Form

Field Summary
static java.lang.String copyrightStatement
           
 
Fields inherited from class com.ibm.serviceregistry.ServiceRegistryException
messageResource, messageResourceLoader, PROPERTY_BSRURI, rollbackOnly
 
Constructor Summary
ConstraintException(ConstraintExceptionType exceptionType, com.ibm.serviceregistry.admin.constraint.Constraint constraint)
          Constructor taking exception type and constraint.
ConstraintException(ConstraintExceptionType exceptionType, com.ibm.serviceregistry.admin.constraint.Constraint constraint, java.lang.Object[] messageInserts)
          In this constructor the message inserts parameter is used to populate the message inserts for the super class.
 
Method Summary
 com.ibm.serviceregistry.admin.constraint.Constraint getConstraint()
          Returns the constraint used by or that may have caused this exception.
 ConstraintExceptionType getExceptionType()
          Returns the exception type.
 java.lang.String getFailingEntityId()
          Returns the failing entity ID.
 void setConstraint(com.ibm.serviceregistry.admin.constraint.Constraint constraint)
          Sets the constraint used by or that may have caused this exception.
 void setFailingEntityId(java.lang.String string)
          Sets the failing entity ID.
 
Methods inherited from class com.ibm.serviceregistry.exception.admin.AdminException
getCause
 
Methods inherited from class com.ibm.serviceregistry.ServiceRegistryException
getExplanationText, getExplanationText, getFailingObject, getInserts, getLocalizedMessage, getLocalizedMessage, getMapToVersion, getMessage, getMessageKey, getMessageNumber, getMessageResource, getMessageResourceLoader, getMessageSeverity, getMessageText, getMessageText, getProperty, getResourceMessage, getResponseText, getResponseText, getRollbackOnly, setCause, setFailingObject, setMapToVersion, setMessageResource, setProperty, writeReplace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

copyrightStatement

public static final java.lang.String copyrightStatement
See Also:
Constant Field Values
Constructor Detail

ConstraintException

public ConstraintException(ConstraintExceptionType exceptionType,
                           com.ibm.serviceregistry.admin.constraint.Constraint constraint)
Constructor taking exception type and constraint.

Parameters:
exceptionType -
constraint -

ConstraintException

public ConstraintException(ConstraintExceptionType exceptionType,
                           com.ibm.serviceregistry.admin.constraint.Constraint constraint,
                           java.lang.Object[] messageInserts)
In this constructor the message inserts parameter is used to populate the message inserts for the super class.

Parameters:
exceptionType -
constraint -
messageInserts -
Method Detail

setConstraint

public void setConstraint(com.ibm.serviceregistry.admin.constraint.Constraint constraint)
Sets the constraint used by or that may have caused this exception.

Parameters:
constraint -

getConstraint

public com.ibm.serviceregistry.admin.constraint.Constraint getConstraint()
Returns the constraint used by or that may have caused this exception.

Returns:
The constraint

getFailingEntityId

public java.lang.String getFailingEntityId()
Returns the failing entity ID.

Returns:
The enitity id

setFailingEntityId

public void setFailingEntityId(java.lang.String string)
Sets the failing entity ID.

Parameters:
string -

getExceptionType

public ConstraintExceptionType getExceptionType()
Returns the exception type.

Returns:
exceptionType The exception type.


© Copyright IBM Corporation 2006, 2009. All Rights Reserved.