com.wm.app.b2b.server
Class ServiceException

java.lang.Object
  extended by com.wm.app.b2b.server.ServerException
      extended by com.wm.app.b2b.server.ServiceException

public class ServiceException
extends com.wm.app.b2b.server.ServerException

This is a general exception thrown when a service fails. When the server throws an exception that does not exist on the client, ServiceException contains the name and text message of the error from the server.

See Also:
AccessException, DeliveryException, InvalidRequestException, TXException

Constructor Summary
ServiceException()
          Constructs a ServiceException without a detailed error message.
ServiceException(java.lang.Class bundleClass, java.lang.String bundleKey, java.lang.String sourceId)
          Constructs a ServiceException using the specified parameters as input.
ServiceException(java.lang.Class bundleClass, java.lang.String bundleKey, java.lang.String sourceId, java.lang.Object[] subs)
          Constructs a ServiceException using the specified parameters as input.
ServiceException(java.lang.Class bundleClass, java.lang.String bundleKey, java.lang.String sourceId, java.lang.String parameter)
          Constructs a ServiceException using the specified parameters as input.
ServiceException(java.lang.Class bundleClass, java.lang.String bundleKey, java.lang.String sourceId, java.lang.Throwable t, java.lang.Object[] subs)
          Constructs a ServiceException using the specified parameters as input.
ServiceException(java.lang.String msg)
          Constructs a ServiceException with the specified message.
ServiceException(java.lang.Throwable t)
          Constructs an ServiceException using the specified Throwable object as input.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceException

public ServiceException()
Constructs a ServiceException without a detailed error message.


ServiceException

public ServiceException(java.lang.String msg)
Constructs a ServiceException with the specified message.

Parameters:
msg - A String specifying the detailed error message for this ServiceException.

ServiceException

public ServiceException(java.lang.Throwable t)
Constructs an ServiceException using the specified Throwable object as input.

Parameters:
t - A Throwable object that contains error information.

ServiceException

public ServiceException(java.lang.Class bundleClass,
                        java.lang.String bundleKey,
                        java.lang.String sourceId,
                        java.lang.String parameter)
Constructs a ServiceException using the specified parameters as input.

Parameters:
bundleClass - A Class representing the resource bundle class. For example, AccessExceptionBundle.class.
bundleKey - A String specifying the identifier used to map to a particular message or message set that is contained in the resource bundle.
sourceId - A String specifying a sourceId for this AccessException. sourceId can be null.
parameter - A String specifying a substitution value.

ServiceException

public ServiceException(java.lang.Class bundleClass,
                        java.lang.String bundleKey,
                        java.lang.String sourceId)
Constructs a ServiceException using the specified parameters as input.

Parameters:
bundleClass - A Class representing the resource bundle class. For example, AccessExceptionBundle.class.
bundleKey - A String specifying the identifier used to map to a particular message or message set that is contained in the resource bundle.
sourceId - A String specifying a sourceId for this AccessException. sourceId can be null.

ServiceException

public ServiceException(java.lang.Class bundleClass,
                        java.lang.String bundleKey,
                        java.lang.String sourceId,
                        java.lang.Object[] subs)
Constructs a ServiceException using the specified parameters as input.

Parameters:
bundleClass - A Class representing the resource bundle class. For example, AccessExceptionBundle.class.
bundleKey - A String specifying the identifier used to map to a particular message or message set that is contained in the resource bundle.
sourceId - A String specifying a sourceId for this AccessException. sourceId can be null.
subs - An Object array containing substitution values that correspond to a the exception. subs can be null.

ServiceException

public ServiceException(java.lang.Class bundleClass,
                        java.lang.String bundleKey,
                        java.lang.String sourceId,
                        java.lang.Throwable t,
                        java.lang.Object[] subs)
Constructs a ServiceException using the specified parameters as input.

Parameters:
bundleClass - A Class representing the resource bundle class. For example, AccessExceptionBundle.class.
bundleKey - A String specifying the identifier used to map to a particular message or message set that is contained in the resource bundle.
sourceId - A String specifying a sourceId for this AccessException. sourceId can be null.
t - A Throwable object that contains error information.
subs - An Object array containing substitution values that correspond to a the exception. subs can be null.