How to check that exception is not thrown for particular exception alone

Hi,
I want to check for Exception but I don't want it to throw exception when it is
java.net.SocketException.
I want to throw message for all other exception.
Please let me know how to implement it.
Thanks & Regards,
Nasrin.N

try {
//some exception throwning code
} catch (SocketException e) {
  //handle the exception
} catch (Exception e) {
//all other exceptions are handled here
}

Similar Messages

  • How to check that Delta is not captured?

    Dear Experts,
    I am using 2LIS_02_ITM datasource.
    PO is created using a program.
    The next step in the program, it can change a field in the PO depending on logic, using a abap command 'update'.
    Sometimes, this change is not captured in the delta queue, it seems.
    why i say this is the PO shows the field value but BI delta load does not.
    It is using Queued Delta now.
    Initially, the program uses a command 'update' to update the field in PO.
    Now, we decided to use ME22N program to ensure delta will be created.
    The problem is happening to some records and not all delta records.
    Its very difficult to tell what is the cause.
    What is the standard method to check that Application table data is not captured in Delta Queue by the extractor?
    Or
    If PO can show the field value, is there a possibility that Delta may not capture this field change?
    regards
    Pascal

    Well just throwing few possibilities:
    1 - Basically PO creation, change in values/quantities etc are Business transactions and they generate evens known as BTEs.
    Now we have to explicitly inform SAP ECC that which applications can use BTEs and we do this by tcode BF11.
    Check if the software component creating and changing POs is properly linked to BTEs and if BW is set as active in BF11 tcode.
    2 - If point 1 is checked and nothing is found to be incorrect, please check if Industry sector is correctly chosen (SBIW). Industry sector generates a set of Transaction keys (BWVORG) without which the values are not updated in BW.
    Also rightly pointed by Tbollo, you need to ensure that there's a pattern in the missing docs to identify the rootcause.
    Debanshu

  • Why have I been sent an email asking me for my Apple ID and Password. How can I check that this is not a scam.

    I want to know why I have been sent an email from Apple to verify my account by asking for my Apple ID and password.
    how do I know this is genuine and is there a way to check that this is not a scam

    I would be very careful about email asking for your Apple ID and password. These are some of the Official Apple email addresses that would contact you:
    [email protected]
    [email protected]
    [email protected]
    [email protected]
    [email protected]
    These email are not to be replied to at all and if the email you receive asks you to reply or has a link that doesn't go the Apple.com or iCloud.com domains, then they are definitely fake.

  • Exception is not thrown immediately in Hibernate 3.  Why??

    I am using Hibernate 3.
    If I execute "session.update" and the update is not successful (e.g. value too large), the exception is not thrown immediately.
    For example,
    System.out.println ("pass 1");
    session.update(dataBean) ;
    System.out.println ("pass 2");
    session.getTransaction().commit();
    System.out.println ("pass 3");
    I find if session.update(dataBean) fails, "pass 1" and "pass 2" are printed but "pass 3" is not printed. That meams Hibernate will not throw exception until I execute "commit". Can I force it to throw immediately (i.e. only "pass 1" will be printed) ?
    Thanks in advance.

    O/R mappers such as Hibernate and JDO generally defer communications with the database for as long as possible; for an insert or update transaction that will be until commit().
    This is for several reasons:
    1) general efficiency - a series of update() calls may modify the same attribute of an object multiple times; it's substantially more efficient to update the database just once
    2) database efficiency - when a transaction is in progress, even when nothing is occuring in that transaction, more resources are consumed inthe database than when no transaction is active. For example, if a transaction updates a row and then 10 minutes later commits, then during that interval the database has to keep track of 2 different versions of that row and know which connections see which version of the row.
    3) connection management - DB connections are expensive resources and once a transaction has started updating the DB, it has to tie up a connection for the duration.
    In other words, no matter how long it takes to set up your transaction in Java, a good O/R mapper is not going to begin a database transaction until the last possible moment, which is at commit().
    Can I force it to throw immediatelyYou can call commit() any time you want.
    It sounds like you want the database to do your input data validation for you. That's wrong. You need to validate input (for size, length, whatever) before you attempt to put it in the database.

  • How to check  that same Oracle software versions(including patch versions)

    How to check that same Oracle software versions(including patch versions) is installed on two hosts(machines) ?
    We are using following process:
    On Host A :
    1) Get the Oracle version using SQLPlus -v
    From this output, extract the version number.
    2)Find the patches installed using opatch lsinventory -detail
    From the output , Extract the Patch numbers and Bugs fixed.
    3) Store the version , patch and bugs information in a common file.
    On Host B :
    Repeat the steps 1 and 2 and compare with the values from Host A.
    Please let us know if there is any other method to do this.
    Thanks.

    This is wrong: for Oracle Database version 10.2.0.4 *4* identifies the patch set and does not give information about interim patchs.
    It is correct to use opatch lsinventory to get interim patchs.
    Edited by: P. Forstmann on Jul 21, 2009 12:38 PM

  • What can be wrong with my iPhone 4?  There is no sound from incoming calls, SMS and even when I play music.  I already checked that it's not muted, volume is high and not set to "vibrate mode."

    What can be wrong with my iPhone 4s.  There is no sound from incoming calls and SMS even when I try to play music.
    I already checked that it is not muted, volume is high and not in " vibrate mode."

    What can be wrong with my iPhone 4s.  There is no sound from incoming calls and SMS even when I try to play music.
    I already checked that it is not muted, volume is high and not in " vibrate mode."

  • I would appreciate your help on how to configure a gmail in a way  it  ask  for the password  everytime I connect?. In the only way I can configure it  I have to include the pw when configuring the account  and  after that  it do not ask for pw

    I would appreciate your help on how to configure a gmail in a way  it  ask  for the password  everytime I connect?. In the only way I can configure it  I have to include the pw when configuring the account  and  after that  it do not ask for pw  so  everyone that shares my iPad can  oppen my mail  with  no pw  required.
    Thank

    The iPad is designed to be a single user device, and there is currently no way to password protect the Mail app - even removing the account password from Settings > Mail, Contacts, Calendars will just prevent new mail being downloaded, it won't hide those that have already been downloaded. There is this work-around for the app : https://discussions.apple.com/message/13127632#13127632 . Also there might be third-party email apps that feature password protecting.

  • Every time I've tried to download application always showing that my account not valid for the uk store.You have to switch to the emirate store.How to do it?

    Every time I've tried to download application always showing that my account not valid for the uk store.You have to switch to the emirate store.How to do it?

    Change App Store
    1. Tap "Settings"
    2. Tap "iTunes & App Stores"
    3.Tap "View Apple ID"
    4. Enter your user name and password.
    5. Tap "Country/Region."
    6. Tap "Change Country/Region"
    7. Select the region where you will be located.
    8. Tap "Done".

  • I have an iPod mini that I have not used for mover 3 years.  I am trying to download music and it  is giving me a warning sign.  How can I fix this issue.

    I have an iPod mini that I have not used for more than 3 years.  I am trying to download music and it is giving me a warning sign.  How can I fix this issue?
    patrishafrombrooklyn

    Try:
    http://snapguide.com/guides/calibrate-your-home-button/?utm_expid=69945963-15
    fix for Home button
    iPhone Home Button Not Working or Unresponsive? Try This Fix
    - If you have iOS 5 and later you can turn on Assistive Touch it add the Home and other buttons to the iPods screen. Settings>General>Accessibility>Assistive Touch
    - If not under warranty Apple will exchange your iPod for a refurbished one for:
    Apple - Support - iPod - Repair pricing
    You can do it an an Apple store by:
    Apple Retail Store - Genius Bar
    or sent it in to Apple. See:
    Apple - Support - iPod - Service FAQ
    - There are third-party places like the following that will repair the Home button. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens

  • HT5312 after I entered the password of my iCloud ID, it prompted out asking me to check email from an emai address that I did not set for rescure and then I cannot login? now my iPhone has got all the cotacts lost.

    after I entered the password of my iCloud ID, it prompted out asking me to check email from an emai address that I did not set for rescure? and then I cannot login.

    Try going to https//appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Tap edit next to the primary email account, tap Edit, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You can now use your current password to turn off Find My iPhone on your device, even though it prompts you for the password for your old account ID. Then go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https//appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • How to rectify that receiver can not hear properly.

    Apple i phone 5. How to rectify that receiver can not hear properly.

    Hello Raj Perera,
    Thanks for the question. After reviewing your post, it sounds like you are having trouble with the receiver. I would recommend that you read this article, it may be able to help the issue.
    If you can't hear a person on a call or voicemail or if the sound quality is poor on iPhone - Apple Support
    Thanks for using Apple Support Communities.
    Have a nice day,
    Mario

  • I have a 13.5 month old Ipad2, wifi only that has had problems with wifi com from the beginning. I am learning that this is not unusual for apple. Any suggestions?

    I have a 13.5 month old Ipad2, wifi only that has had problems with wifi com from the beginning. I am learning that this is not unusual for apple. Any suggestions?
    ronald1094

    Try #5.
    Some things to try first:
    1. Turn Off your iPad. Then turn Off (disconnect power cord for 30 seconds or longer) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
    2. Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
    3. Change the channel on your wireless router (Auto or Channel 6 is best). Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
    4. Go into your router security settings and change from WEP to WPA with AES.
    5.  Renew IP Address: (especially if you are droping internet connection)
        •    Launch Settings app
        •    Tap on Wi-Fi
        •    Tap on the blue arrow of the Wi-Fi network that you connect to from the list
        •    In the window that opens, tap on the Renew Lease button
    ~~~~~~~~~~~~~~~~~~~~~~~~~
    iOS 6 Wifi Problems/Fixes
    How To: Workaround iPad Wi-Fi Issues
    http://www.theipadfan.com/workaround-ipad-wifi-issues/
    Another Fix For iOS 6 WiFi Problems
    http://tabletcrunch.com/2012/10/27/fix-ios-6-wifi-problems-ssid/
    Wifi Doesn't Connect After Waking From Sleep - Sometimes increasing screen brightness prevents the failure to reconnect after waking from sleep. According to Apple, “If brightness is at lowest level, increase it by moving the slider to the right and set auto brightness to off.”
    Fix For iOS 6 WiFi Problems?
    http://tabletcrunch.com/2012/09/27/fix-ios-6-wifi-problems/
    Did iOS 6 Screw Your Wi-Fi? Here’s How to Fix It
    http://gizmodo.com/5944761/does-ios-6-have-a-wi+fi-bug
    How To Fix Wi-Fi Connectivity Issue After Upgrading To iOS 6
    http://www.iphonehacks.com/2012/09/fix-wi-fi-connectivity-issue-after-upgrading- to-ios-6.html
    iOS 6 iPad 3 wi-fi "connection fix" for netgear router
    http://www.youtube.com/watch?v=XsWS4ha-dn0
    Apple's iOS 6 Wi-Fi problems
    http://www.zdnet.com/apples-ios-6-wi-fi-problems-linger-on-7000004799/
    ~~~~~~~~~~~~~~~~~~~~~~~
    How to Fix a Poor Wi-Fi Signal on Your iPad
    http://ipad.about.com/od/iPad_Troubleshooting/a/How-To-Fix-A-Poor-Wi-Fi-Signal-O n-Your-iPad.htm
    iOS Troubleshooting Wi-Fi networks and connections  http://support.apple.com/kb/TS1398
    iPad: Issues connecting to Wi-Fi networks  http://support.apple.com/kb/ts3304
    WiFi Connecting/Troubleshooting http://www.apple.com/support/ipad/wifi/
    How to Fix: My iPad Won't Connect to WiFi
    http://ipad.about.com/od/iPad_Troubleshooting/ss/How-To-Fix-My-Ipad-Wont-Connect -To-Wi-Fi.htm
    iOS: Connecting to the Internet http://support.apple.com/kb/HT1695
    iOS: Recommended settings for Wi-Fi routers and access points  http://support.apple.com/kb/HT4199
    How to Quickly Fix iPad 3 Wi-Fi Reception Problems
    http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
    iPad Wi-Fi Problems: Comprehensive List of Fixes
    http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
    Connect iPad to Wi-Fi (with troubleshooting info)
    http://thehowto.wikidot.com/wifi-connect-ipad
    Fix iPad Wifi Connection and Signal Issues  http://www.youtube.com/watch?v=uwWtIG5jUxE
    Fix Slow WiFi Issue https://discussions.apple.com/thread/2398063?start=60&tstart=0
    How To Fix iPhone, iPad, iPod Touch Wi-Fi Connectivity Issue http://tinyurl.com/7nvxbmz
    Unable to Connect After iOS Update - saw this solution on another post.
    https://discussions.apple.com/thread/4010130
    Note - When troubleshooting wifi connection problems, don't hold your iPad by hand. There have been a few reports that holding the iPad by hand, seems to attenuate the wifi signal.
    ~~~~~~~~~~~~~~~
    If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
     Cheers, Tom

  • The demand of my application is that i can not replace for loop with a while loop.because i need fixed number of iterations and as far as i know fixed iterations could be only with possible with the for loop.

    the demand of my application is that i can not replace for loop with a while loop.because i need fixed number of iterations and as far as i know fixed iterations could be only with possible with the for loop.
    your recommended second option that i could add true/false case.
    this true/false case must be inside the for loop or outside the for loop?if this case is inside the for
    loop, how can i send stop command from outer while
    loop?
    more over do you have any example for this please?
    thanks"

    You can execute a fixed number of iterations using a while loop by comparing the iteration count to the number of iterations you want and wiring the output of that comparison (e.g. Less Than or Equal To) to the continue (or stop) terminal of your while loop. Which comparison you use depends on personal preference, where you wire the desired count and the interation count, and whether you're using the while loop as Continue if True or Stop if True.
    Ben gave you step-by-step instructions in response to your previous question. Look here for Ben's response.
    Ben's response looks pretty good and detailed to me. It certa
    inly deserved better than a 1-star rating.

  • How to check different HR-ESS/MSS services for TMC,Succession in SE80

    Hi Experts,
    I am tring to check the services , i have few queries:
    How to check different HR-ESS/MSS services for TMC,Succession in SE80. I want to test them,
    I went through Ripository browser but could not able to locate the HR applications.
    I tried with SICF but got only few service names.
    Please guide me on the same.

    http://scn.sap.com/community/erp/hcm/employee-self-service/blog/2014/04/18/hcm-ehp5-ehp6-and-hr-renewal-important-links-and-documents See last section of the blog in Se80, alos, you can check via Se80>paoc_ESs, PAOC_MSS, PAOC_TMC ie package > PAOC_* http://help.sap.com/erp_hcm_ias_2012_01/helpdata/en/b7/238005419a4f5baa28351e21498e6f/content.htm

  • I have an iphone4 and that I have had for four years and they are saying that I am not eligible for an upgrade until the end of July 2015. That is four years and 3 months after I purchased this phone. "Customer service" said I had an upgrade at the end of

    I have an iphone4 and that I have had for four years and they are saying that I am not eligible for an upgrade until the end of July 2015. That is four years and 3 months after I purchased this phone. "Customer service" said I had an upgrade at the end of July 2013, which I did not. She said that in the system my husband took an upgrade July 29th 2013. He didn't even have a Verizon phone, he had a work phone with T-mobile. I have asked what device he supposedly upgraded to since no phones have been activated and we all still have our same phones and numbers. Remember at the time, said husband had a work phone with T-mobile. I still have the very same phone as do all of the rest of my family members. No one has upgraded. I spoke with "customer service" for more than a half an hour today, Char promised me that her supervisor (Emily) would call me back by 7:30 tonight to clear up this problem. Well guess what? No call back so where should I go from here? Any advice or help would be greatly appreciated. Thank you for your help.

    someone swapped upgrades.  Phone could have been sold For quick cash. 

Maybe you are looking for