com.retek.commons.domain.core.exception
Class BusinessProblem

java.lang.Object
  extended bycom.retek.commons.domain.core.exception.BusinessProblem
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
SellingItemExistsProblem, ValidationProblem

public class BusinessProblem
extends java.lang.Object
implements java.io.Serializable

Holds information relating to one business rule error, including source, attribute that caused the error, and severity.

Retek Inc. Copyright (c) 2003

See Also:
Serialized Form

Constructor Summary
BusinessProblem(java.lang.Object theSource, java.lang.String theAttributeName, ErrorSeverity theSeverity, java.lang.String theMessageBundle, java.lang.String theMessageKey)
           
BusinessProblem(java.lang.Object theSource, java.lang.String theAttributeName, ErrorSeverity theSeverity, java.lang.String theMessageBundle, java.lang.String theMessageKey, java.lang.Object[] theMessageValues)
           
 
Method Summary
 java.lang.String getAttributeName()
           
 java.lang.String getMessage()
           
 java.lang.String getMessageKey()
           
 ErrorSeverity getSeverity()
           
 java.lang.String getSourceId()
           
 java.lang.Class getSourceInterface()
          Returns the business interface which the source object implements.
 boolean isSource(BusinessObject businessObject)
           
 boolean isSource(DistributedObject distObj)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BusinessProblem

public BusinessProblem(java.lang.Object theSource,
                       java.lang.String theAttributeName,
                       ErrorSeverity theSeverity,
                       java.lang.String theMessageBundle,
                       java.lang.String theMessageKey)

BusinessProblem

public BusinessProblem(java.lang.Object theSource,
                       java.lang.String theAttributeName,
                       ErrorSeverity theSeverity,
                       java.lang.String theMessageBundle,
                       java.lang.String theMessageKey,
                       java.lang.Object[] theMessageValues)
Method Detail

getSourceInterface

public final java.lang.Class getSourceInterface()
Returns the business interface which the source object implements.


getSourceId

public final java.lang.String getSourceId()

isSource

public final boolean isSource(BusinessObject businessObject)

isSource

public final boolean isSource(DistributedObject distObj)

getAttributeName

public final java.lang.String getAttributeName()

getSeverity

public final ErrorSeverity getSeverity()

getMessageKey

public java.lang.String getMessageKey()

getMessage

public java.lang.String getMessage()

toString

public java.lang.String toString()


Copyright © 2005 Retek Inc. All Rights Reserved. - Generated at Fri, 01/21/2005 14:25