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

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.retek.commons.domain.core.exception.BusinessException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ActivityRequestBusinessException, AddressCodeSubmitException, AtpBusinessException, BannerChannelBusinessException, BannerChannelTypeBusinessException, CallTagBusinessException, CarrierBusinessException, CatalogBusinessException, CatalogRequestBusinessException, ChannelTypeBusinessException, CorrespondenceBusinessException, CreditCardBusinessException, CustomerBusinessException, CustomerCreditApplicationBusinessException, CustomerMergeException, CustomerOrderBusinessException, CustomerOrderPaymentBusinessException, CustomerOrderPublishWorklistCorrespondenceBusinessException, CustomerOrderServiceLineCopyBusinessException, DepartmentBusinessException, DuplicateShipRestrictionException, DuplicateTenderTypeGroupOrderSourceException, EventBusinessException, GeoLocationBusinessException, GeoLocationSearchException, HighRiskZipBusinessException, IllegalReturnLineOperationException, InvalidCustomerAddressException, InvalidCustomerEmailException, InvalidCustomerException, InvalidCustomerIntegrationCustomerException, InvalidCustomerMergeRequestException, InvalidCustomerOrderException, InvalidCustomerTelephoneException, InvalidECDDRecalculationItemException, InvalidHistoryEventException, InvalidHistoryEventTypeException, InvalidLocationException, InvalidMailOrderBatchException, InvalidNoCustomerInfoReturnException, InvalidNonBusinessDayException, InvalidOrderLineException, InvalidPaymentAmountException, InvalidPaymentStateException, InvalidPaymentTypeException, InvalidReturnLineException, InvalidSearchCriteriaException, InvalidShippedContainerLineException, InvalidShippingMethodForSellableItemException, InvalidShipToException, InvalidStoreTransactionContainerException, InvalidSupplierException, InvalidUserIdException, InventoryBusinessException, ItemBusinessException, ItemClassBusinessException, ItemNotAvailableException, ItemSubclassBusinessException, LocationBusinessException, MailOrderBatchSearchValidationException, MediaBusinessException, MessageBusinessException, NegativeCustomerRecordException, OrderLineNotDirectShipException, OrderQtyNotReservedException, PaymentAuthorizationBusinessException, PaymentBusinessException, PendRuleException, PromotionBusinessException, QuantityMoveBusinessException, ReservationBusinessException, RetekSecurityException, ShippingBusinessException, SupplierBusinessException, TaskBusinessException, TaxBusinessException

public abstract class BusinessException
extends java.lang.Exception

Root class of all business rule related exceptions. May contain multiple business problems. Max severity of errors escalates as business problems are added, according to error severity of the business problem.

Retek Inc. Copyright (c) 2003

See Also:
Serialized Form

Constructor Summary
BusinessException(java.lang.String messageBundle, java.lang.String messageKey)
           
BusinessException(java.lang.String messageBundle, java.lang.String messageKey, BusinessProblem theProblem)
           
BusinessException(java.lang.String messageBundle, java.lang.String messageKey, java.lang.Object[] messageValues)
           
BusinessException(java.lang.String messageBundle, java.lang.String messageKey, java.lang.Object[] messageValues, BusinessProblem theProblem)
           
 
Method Summary
 void add(BusinessProblem theProblem)
           
 void addAll(java.util.Collection problems)
           
 ErrorSeverity getMaxSeverity()
          Returns the highest severity of all the business problems.
 java.lang.String getMessage()
           
 java.lang.String getMessageBundle()
          Added for External API requirements only.
 java.lang.String getMessageKey()
          Added for External API requirements only.
 java.lang.Object[] getMessageValues()
          Added for External API requirements only.
 java.util.Collection getProblems()
           
 boolean hasErrors()
          Returns true if any of the business problems have a severity of Error or higher.
 boolean hasProblems()
           
 boolean hasProblems(ErrorSeverity minSeverity)
          Returns true if any of the business problems have a severity higher then minSeverity.
 void printStackTrace()
           
 void printStackTrace(java.io.PrintStream out)
           
 void printStackTrace(java.io.PrintWriter out)
           
 void throwIfErrors()
          Throws itself if any of the business problems have a severity of Error or higher.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BusinessException

public BusinessException(java.lang.String messageBundle,
                         java.lang.String messageKey)

BusinessException

public BusinessException(java.lang.String messageBundle,
                         java.lang.String messageKey,
                         BusinessProblem theProblem)

BusinessException

public BusinessException(java.lang.String messageBundle,
                         java.lang.String messageKey,
                         java.lang.Object[] messageValues)

BusinessException

public BusinessException(java.lang.String messageBundle,
                         java.lang.String messageKey,
                         java.lang.Object[] messageValues,
                         BusinessProblem theProblem)
Method Detail

add

public void add(BusinessProblem theProblem)

addAll

public void addAll(java.util.Collection problems)

getProblems

public java.util.Collection getProblems()

getMaxSeverity

public ErrorSeverity getMaxSeverity()
Returns the highest severity of all the business problems. The severity determines how the UI displays errors.


hasProblems

public boolean hasProblems()

hasProblems

public boolean hasProblems(ErrorSeverity minSeverity)
Returns true if any of the business problems have a severity higher then minSeverity.


hasErrors

public boolean hasErrors()
Returns true if any of the business problems have a severity of Error or higher.


throwIfErrors

public void throwIfErrors()
                   throws BusinessException
Throws itself if any of the business problems have a severity of Error or higher.

Throws:
BusinessException

getMessage

public java.lang.String getMessage()

getMessageKey

public java.lang.String getMessageKey()
Added for External API requirements only.


getMessageBundle

public java.lang.String getMessageBundle()
Added for External API requirements only.


getMessageValues

public java.lang.Object[] getMessageValues()
Added for External API requirements only.


printStackTrace

public final void printStackTrace()

printStackTrace

public final void printStackTrace(java.io.PrintStream out)

printStackTrace

public final void printStackTrace(java.io.PrintWriter out)


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