openamf/src/java/org/openamf DefaultGateway.java,1.63,1.64

Sean Sullivan <[email protected]> Fri, 29 Oct 2004 07:21:03 +0000
Newsgroups gmane.comp.java.openamf.cvs
Message-ID <[email protected]>
Update of /cvsroot/openamf/openamf/src/java/org/openamf
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31783/src/java/org/openamf

Modified Files:
	DefaultGateway.java 
Log Message:
improved exception handling


Index: DefaultGateway.java
===================================================================
RCS file: /cvsroot/openamf/openamf/src/java/org/openamf/DefaultGateway.java,v
retrieving revision 1.63
retrieving revision 1.64
diff -C2 -d -r1.63 -r1.64
*** DefaultGateway.java	18 Sep 2004 02:54:02 -0000	1.63
--- DefaultGateway.java	29 Oct 2004 07:21:00 -0000	1.64
***************
*** 111,122 ****
  	}
  
! 	protected void logRequestException(Exception e, AMFMessage requestMessage)
  	{
  		String msg = "Error in service"; 
  		
! 		if (requestMessage != null)
  		{
! 			msg += ", requestMessage=";
! 			msg += String.valueOf(requestMessage);
  		}
  		
--- 111,122 ----
  	}
  
! 	protected void logRequestException(Exception e, Object detail)
  	{
  		String msg = "Error in service"; 
  		
! 		if (detail != null)
  		{
! 			msg += ", detail=";
! 			msg += String.valueOf(detail);
  		}
  		
***************
*** 213,217 ****
  		} catch (ServiceInvocationException e) {
  			serviceResult = e.getAMFError();
! 			logRequestException(e, null);
  		}
  		return serviceResult;
--- 213,217 ----
  		} catch (ServiceInvocationException e) {
  			serviceResult = e.getAMFError();
! 			logRequestException(e, requestBody);
  		}
  		return serviceResult;



-------------------------------------------------------
This Newsletter Sponsored by: Macrovision 
For reliable Linux application installations, use the industry's leading
setup authoring tool, InstallShield X. Learn more and evaluate 
today. http://clk.atdmt.com/MSI/go/ins0030000001msi/direct/01/