com.bt.sdk
Class BTExceptionFactory

java.lang.Object
  extended by com.bt.sdk.BTExceptionFactory

public class BTExceptionFactory
extends java.lang.Object


Constructor Summary
BTExceptionFactory()
           
 
Method Summary
static BTBaseException createException(java.lang.Throwable t)
          createException createException changes the exceptions thrown by the serialization mechanism into BTFaults.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BTExceptionFactory

public BTExceptionFactory()
Method Detail

createException

public static BTBaseException createException(java.lang.Throwable t)
createException createException changes the exceptions thrown by the serialization mechanism into BTFaults. It also maps SoapFaults from XFire into explict BT Exceptions. This is done primarily to provide a better exception interface to the client and also to mask any stack traces that may inadvertanly come across the wire.

Parameters:
t -
Returns:
the BTBaseException that represents this fault