net.smartlab.web
Class BusinessException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by net.smartlab.web.BusinessException
All Implemented Interfaces:
java.io.Serializable

public class BusinessException
extends java.lang.Exception

A BusinessException is thrown whenever an application tries to perform a business operation but the request cannot be accomplished for some reason.

Author:
rlogiacco
See Also:
Serialized Form

Constructor Summary
BusinessException()
          Default empty constructor.
BusinessException(java.lang.String message)
          Instantiates the class with a message.
BusinessException(java.lang.String message, java.lang.Object param)
          Instantiates the class with a message and a parameter.
BusinessException(java.lang.String message, java.lang.Object[] params)
          Instantiates the class with a message and an array of parameters.
BusinessException(java.lang.String message, java.lang.Object param1, java.lang.Object param2)
          Instantiates the class with a message and two parameters.
BusinessException(java.lang.String message, java.lang.Object param1, java.lang.Object param2, java.lang.Object param3)
          Instantiates the class with a message and three parameters.
BusinessException(java.lang.String message, java.lang.Object param1, java.lang.Object param2, java.lang.Object param3, java.lang.Object param4)
          Instantiates the class with a message and four parameters.
BusinessException(java.lang.String message, java.lang.Throwable cause)
          Constructs a new instance with the specified describing message and cause.
BusinessException(java.lang.Throwable cause)
          Constructs a new instance with the specified cause.
 
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

BusinessException

public BusinessException(java.lang.String message)
Instantiates the class with a message. The providen message is used as a key and searched in available resource bundles. If the message is not a valid resource key than it's used directly.

Parameters:
message - the key to be searched in resource bundles.

BusinessException

public BusinessException(java.lang.String message,
                         java.lang.Object param)
Instantiates the class with a message and a parameter. The providen message is used as a key and searched in available resource bundles. If the message is not a valid resource key than it's used directly.

Parameters:
message - the key to be searched in resource bundles.
param - an object to be used for param substitution.

BusinessException

public BusinessException(java.lang.String message,
                         java.lang.Object param1,
                         java.lang.Object param2)
Instantiates the class with a message and two parameters. The providen message is used as a key and searched in available resource bundles. If the message is not a valid resource key than it's used directly.

Parameters:
message - the key to be searched in resource bundles.
param1 - an object to be used for param substitution.
param2 - an object to be used for param substitution.

BusinessException

public BusinessException(java.lang.String message,
                         java.lang.Object param1,
                         java.lang.Object param2,
                         java.lang.Object param3)
Instantiates the class with a message and three parameters. The providen message is used as a key and searched in available resource bundles. If the message is not a valid resource key than it's used directly.

Parameters:
message - the key to be searched in resource bundles.
param1 - an object to be used for param substitution.
param2 - an object to be used for param substitution.
param3 - an object to be used for param substitution.

BusinessException

public BusinessException(java.lang.String message,
                         java.lang.Object param1,
                         java.lang.Object param2,
                         java.lang.Object param3,
                         java.lang.Object param4)
Instantiates the class with a message and four parameters. The providen message is used as a key and searched in available resource bundles. If the message is not a valid resource key than it's used directly.

Parameters:
message - the key to be searched in resource bundles.
param1 - an object to be used for param substitution.
param2 - an object to be used for param substitution.
param3 - an object to be used for param substitution.
param4 - an object to be used for param substitution.

BusinessException

public BusinessException(java.lang.String message,
                         java.lang.Object[] params)
Instantiates the class with a message and an array of parameters. The providen message is used as a key and searched in available resource bundles. If the message is not a valid resource key than it's used directly.

Parameters:
message - the key to be searched in resource bundles.
params - a set of objects for param substitution.

BusinessException

public BusinessException()
Default empty constructor.


BusinessException

public BusinessException(java.lang.Throwable cause)
Constructs a new instance with the specified cause.

Parameters:
cause - the throwable instance wich generated this exception.

BusinessException

public BusinessException(java.lang.String message,
                         java.lang.Throwable cause)
Constructs a new instance with the specified describing message and cause.

Parameters:
message - the description of the occurred exception.
cause - the throwable instance wich generated this exception.


Copyright © 2004-2009 The SmartWeb Team. All Rights Reserved.