Author: sagara
Date: Mon Mar 14 07:36:06 2011
New Revision: 1081274

URL: http://svn.apache.org/viewvc?rev=1081274&view=rev
Log:
Updated sample class according to the recent Exception naming changes. 

Modified:
    
axis/axis2/java/core/branches/1_6/modules/samples/faulthandling/service/src/example/BankServiceSkeleton.java

Modified: 
axis/axis2/java/core/branches/1_6/modules/samples/faulthandling/service/src/example/BankServiceSkeleton.java
URL: 
http://svn.apache.org/viewvc/axis/axis2/java/core/branches/1_6/modules/samples/faulthandling/service/src/example/BankServiceSkeleton.java?rev=1081274&r1=1081273&r2=1081274&view=diff
==============================================================================
--- 
axis/axis2/java/core/branches/1_6/modules/samples/faulthandling/service/src/example/BankServiceSkeleton.java
 (original)
+++ 
axis/axis2/java/core/branches/1_6/modules/samples/faulthandling/service/src/example/BankServiceSkeleton.java
 Mon Mar 14 07:36:06 2011
@@ -35,12 +35,12 @@
 
          */
         public  example.WithdrawResponse withdraw(example.Withdraw param0)
-           throws InsufficientFundFaultMessage,AccountNotExistFaultMessage{
+           throws InsufficientFundException,AccountNotExistException{
                 final String account = param0.getAccount();
         if (account.equals("13")) {
             final AccountNotExistFault fault = new AccountNotExistFault();
             fault.setAccount(account);
-            AccountNotExistFaultMessage messageException = new 
AccountNotExistFaultMessage("Account does not exist!");
+            AccountNotExistException messageException = new 
AccountNotExistException("Account does not exist!");
             messageException.setFaultMessage(fault);
             throw messageException;
         }
@@ -51,7 +51,7 @@
             fault.setAccount(account);
             fault.setBalance(1000);
             fault.setRequestedFund(amount);
-            InsufficientFundFaultMessage messageException = new 
InsufficientFundFaultMessage("Insufficient funds");
+            InsufficientFundException messageException = new 
InsufficientFundException("Insufficient funds");
             messageException.setFaultMessage(fault);
             throw messageException;
         }


Reply via email to