Stopping exceptions from being handled earlier

Hi,
I am writing a program that uses some code that I wrote and some code that others wrote. In one part of the code, an exception often comes up in the part of code that other people wrote. They handle that exception themselves by printing the stack trace. However, I do not want the stack trace to be printed out. The exception is already handled so if I put in a catch block it does nothing.
Is there any way I can stop the exception from being caught or handled before? Or is there a way I can prevent the stack trace from being printed and call a different method if this exception was ever thrown or caught?
Thanks, and tell me if part of what I wrote was unclear then tell me.

Sky,
Your problem description is perfectly clear. 10/10.
But, Sorry.... It ain't good news.
1. The short answer is "No".
2. The longer and far more correct answer is "maybe", so long as the dodgy booger who wrote that code gave you the hooks which allow you to (a) supply an error handler; or (b) override the offending method by extending the class and reimplementing all it's constructors and that messy method, and you can change all the code which references that class to use your subclass... ie: Not bluddy likely.
3. The correct answer is of course: "Yes, anything is possible, just some things cost more than others"... Decompilers, Custom byte-code modifying class-loaders, A wee ASM to filter the JVM's
standard error stream... I can hear the boss now "What do you porkchops think you're playing at!".
I get the feeling that the stackTrace is just an annoyance factor, and it really isn't worth the effort to solve this problem. My advice is to learn to live with it.
Keith.

Similar Messages

  • How to stop files from being locked in Mountain Lion?

    In the last week, I have found several of the files that I have generated or downloaded have become locked.  Since Apple has eliminated the Auto locking feature that use to be in Time Machine.  The files include PDFs, PHGs, TXTs, etc.  How do I stop files from being locked?  How do I unlock the ones that are locked?  I can not emtpy my Trash. 

    When I went to "Get Info" on one of the locked files [a TXT file] per your steps, I noticed that the there was a Locked box checked.  I unchecked that box and was then able to remove the files from Trash without any further action. 
    Do you know why it got locked in the first place since Mountain Lion does not automatically lock files as the older OS X version did?  Do you know how to prevent it from happening again?
    I want to thank you for your suggestion.
    Mac

  • Is it possible to throw an exception from a handler chain with JAXWS???

    I know I cannot throw directly an exception from the handler cause my handler extends SOAPHandler and the method handlerMessage cannot throw exceptions. The problem is that I would like to validate some authorization and if the client doesn't have the appropriate rights, I would like to throw an exception from the handler without calling the web service itself, so the client would receive a valid soap response from the server. Is it possible?? Is there another mechanism that I can use to do that??
    Thanks a lot
    Korg

    You can throw a ProtocolException or RuntimeException from handleMessage().
    If you throw ProtocolException, HandleFault() is called on previously invoked handlers.
    If you throw a RuntimeException, handleFault() or handleMessage() is not called on previously invoked handlers, and the Exception is converted to Fault message and dispatched.

  • Stopping HD from being accessed

    I've had to return my G5 iSight to the dealer for repairs. There is a lot of personal data on one of the partitions on the internal drive and to stop access to that partition, I set up an account for the dealer to use, and as well, I stopped it from being visible on the dealer's desktop by allowing only the Administrator (me) access to the disk.
    That worked well. But I thought I'd try to erase the partition from within the dealer's account by using Disk Utility. Sure enough, the partition appeared and Disk Utility seemed to allow me to erase it.
    How can I lock a partition so that it is password protected and nothing can be done to it from within a dealer's account?
    Thanks in advance for any suggestions

    There's very little you can do to prevent access to that partition as a whole. You can't even rely on your login password, since that can be reset by anyone with a system disk. What I would advise is to keep all sensitive data in an encrypted file of some sort. Encrypted disk images work beautifully for this purpose. I have one that contains all my passwords, account numbers, financial information, etc. The password is long and is not remembered in any keychain.
    If the disk image option doesn't work for you, there are all kinds of commercial and non-commercial encryption options. Just search somewhere like MacUpdate or VersionTracker.

  • Wife is getting old and keeps closing my google phone window is there a way to stop it from being closed or going to another site?

    Wife is getting old and keeps closing my google phone window is there a way to stop it from being closed or going to another site? The window needs to be left open so we can receive phone calls.

    You can use an extension to lock specific tabs.
    *Tabberwocky: https://addons.mozilla.org/firefox/addon/tabberwocky/
    *Tab Mix Plus: https://addons.mozilla.org/firefox/addon/tab-mix-plus/

  • Can I stop email from being sent?

    I have a number of email accounts configured in outlook 2010.
    I want to prevent email from being sent via one of the accounts.
    CAN I do this?
    If so How?
    I have tried to change the SMTP address to be invalid.
    It does not send, and does not give me an error.
    When I close outlook it tells me emails have not been sent. I have no idea where these emails r.
    When I restart it, it resets the smtp address and sends the email.
    ruggb

    thx for the reply
    The problem I am trying to work around is ppl using outlook try to send/reply/fwd emails using those old addresses. Outlook must be configured to rcv mail from clients using those addresses. So if the old email address is set as FROM I want to stop it from
    being sent.
    if i set the smtp address to an invalid the test never completes and I can never get to the end of that wizard.
    If I go back and look at it it is still the invalid address after I cancel the wizard.
    If i try to send mail it appears to do it after a long pause and i can't find the email anyplace -but it is not sent.
    If i shut down and restart outlook it is back to the valid address and the mail gets sent.
    I have it set only rcv, not send, that address in the group but that doesn't work.
    ruggb

  • How can I STOP Firefox from being a glutton with my virtual memory?

    How can I STOP Firefox from being a glutton with my virtual memory?

    Yes. But, I see from the THOUSANDS of responses here concerning Firefox memory issues that other people have had no more success than I have at trying to STOP Firefox's memory gluttony. The fact that Firefox runs fine (like the good old days) for a while after re-booting and registry cleaning shows that something is going on beyond the trivial/ineffective suggestions offered in the referenced links.
    Having to re-boot several times a day to get Firefox out of the molasses is such a pain, that it's no wonder people are going back to IE, or like me, reluctantly relying more and more on Google Chrome.

  • How do I stop texts from being seen on multiple devices on the same iTunes account

    I just updated my iphone 4s to ios 6 and now my texts are being viewed on another iphone connected to the same itunes account. How do I stop this from happening??

    Go into Settings -> Messages -> Send & Receive on the devices that your would not like to get your text messages to.
    Then remove the email addresses that you would not like to be reached on, especially the one that is the same as your Apple ID.
    Just leave the phone number there, and then the text messages should only appear on your iPhone 4s.

  • Stop Images from being downloaded?

    I'm wondering if there is a way to stop your images from
    being downloaded off your website without using Flash.
    Is there another way?
    Thanks
    Zoe

    "zoelinn" <[email protected]> wrote in
    message
    news:eimddr$oui$[email protected]..
    > Thanks for the definitive response, exactly what I
    needed.
    And thanks for not arguing when they hear that definitive
    answer, like most
    people do!
    Patty Ayers | www.WebDevBiz.com
    Free Articles on the Business of Web Development
    Web Design Contract, Estimate Request Form, Estimate
    Worksheet

  • How to stop adobe from being default on mac

    how do I stop adobe reader from being default reader on my mac

    Just found this on a Mac forum so re posting to help anyone with a similar problem:
    Just one right click on our PDF file, go to "Get info" and on the "open with" option choose "Perview" and than click on "Modify all".
    Hope it was useful and sorry 4 my english.
    The voices may not be correct because i'm italian and my Mac is in italian language, but i hope you can understand.
    Cheers!

  • .DS_Store files on USB thumbdrives - a way to stop them from being created?

    Hello!
    Forgive me if this has been asked to death, but at school I need to copy homework files back and forth to the school's XP-based computers constantly. Because in any given day I usually update half a dozen files across the "homework" folder on my Powerbook, it's easier just to copy the entire folder (and its subfolders) to my 2-GB, FAT-32 formatted flash drive each night - all 500 files (and 150 MB). Of course, this also leaves hundreds of .DS_Store and ._filename files to clutter "Windows explorer" windows.
    My question is how do I remove (and prevent creation of) these files selectively? I know that they are used by the finder to store thumbnails, spotlight comments, and labels. The big problem is that while I want to remove these files from the homework folder (and some other folders), I DO NOT want to remove them from a few other folders on the flash drive - which I use to make quick backups of files from my Mac.
    I know that I can prevent OS X from creating them altogether with certain utilities, and I know that I can get third-party utilities that allow me to remove these files from flash drive and/or prevent the creation of the files for entire volumes, but is there something I can do to remove them from only certain folders?
    Also, since I do not always know beforehand what directories I might make, I'd like to be able to create a "white list" of only certain directories (and their sub-directories)that won't be touched, while all others will have their ".DS_Store" and "._filename" files removed.
    Finally, because I'm often a hurry when I go to copy files, I'd rather not sit there and run terminal commands or a program every time I copy a folder over to the flash drive. Is there some way to prevent them from being created in these certain folders altogether, automatically? An applescript or terminal command that I can program to run from the script menu perhaps? I don't mind opening a program or script, I just don't want to have to sit there manually removing the files.
    Thanks,
    -Dan

    I had a similar problem awhile back and asked for help in the Applescript forum:
    http://discussions.apple.com/thread.jspa?threadID=954738&tstart=0
    Unfortunately the revised jive software formatting function here in the forums has totally messed up things like posted scripts. What you'll see in the scripts discussed is no longer what was there originally. I just now put a copy of the script I'm using up in zip format here:
    http://homepage.mac.com/francines/.Public/CopyStrip2Fat.zip
    Unzip and open in Script Editor to get some idea of what it is really supposed to be. The idiot formatting of the revised jive software has replaced some things with a carriage return, a semi-colon, and close quote, thus rendering some lines meaningless.
    To see the source of the script I quoted, see this MacOSXHints thread:
    http://www.macosxhints.com/article.php?story=20040726164957299
    The script is in the comment by cougar718. You might take a look at other comments as well.
    Francine
    Francine
    Schwieder

  • How do I stop people from being redirected from my organization's website to another with a similar address and copied content (not a problem on IE or Chrome)?

    My organization's website is: www.wallingfordseniors.org
    Many people when using Firefox are being redirected to another website (www.wallingfordsseniors.org) which has lifted our content verbatim. Even when typing in our address, people get sent to the other one. This other website is being operated by an unknown entity and the hosting company has no contact information we can find to send a DMCA violation letter to. Anyway to keep people from going to the other site? For now all the links are the same but we are concerned that they will mess with our link to submit donations and route money to themselves with our donors thinking they are giving to us. Any help would be greatly appreciated.
    -Javier

    It depends on how it's happening. For example:
    * DNS Server glitch (OS or router level): however, you would expect the same result in all browsers
    * Custom DNS/proxy setting in Firefox - users can check their connection settings as described in this article: [[Advanced settings for accessibility, browsing, system defaults, network, updates, and encryption]] (network mini-tab under Advanced settings)
    * Non-default search engine plugin -- if the user puts a space in the domain -- that doesn't display search results normally: user can make sure Google is selected
    * Hijacked by a browser extension: user can try Firefox's Safe Mode
    * Redirect hacked into your website (in .htaccess or a PHP/JSP/ASPX file under certain circumstances)
    Once the wrong address is in Firefox's history, for example from making a typo once, users may find it hard to notice the difference when given autocomplete suggestions.
    Hopefully you can track it down.

  • How do I STOP thunderbird from being the default mail client?

    I recently upgraded my version of thunderbird and it has decided it is to be my default email program. This is really annoying. I use thunderbird for 1 email account and all other email accounts are handled by MS Outlook 2010.
    How do I tell thunderbird it is NOT the default email program?

    From the Menu Bar select '''Tools-Options-Advanced-General'''
    Under System Integration uncheck the box to always check to see if Thunderbird is the default.
    No menu bar? Press the alt key.
    Then tell Outlook it is the default.

  • Safari restrictions don't stop images from being seen

    When I enable restrictions on my child's iphone for Safari and only certain websites are allowed, my child can still search a subject and then hit images and it will pull up images.  Completely defeats the purpose.  If I don't want my child reading about a certain topic, I definitely do not want them to see the topic.

    If you dock the panels on the right (layers,etc) like the toolbox is docked that will stop the image from going under the panels.
    Just grab the top of the panels (red box in screenshot) and move to the right until you see a blue line, then release.
    MTSTUNER

  • JSlider - can limit / stop knob from being dragged?

    Hi all,
    Is there any way to disable the knob on a JSlider to stop the user dragging it past a certain point? Am using state changed event to reset the value to stop it being clicked past a point, but it can still be dragged. Help!
    Thanks

    That's not what it's meant for, but you can tweak setExtent (...) to prevent the slider being dragged beyond (max - extent).
    A caveat: calling setExtent with an argument greater than (max - value) will result in the extent being set to (max - value).
    db

Maybe you are looking for

  • Applescript to automatically reply to an email

    Hi, I'm trying to create a script in Lion that will send an automatic reply to messages I receive with the subject line "Here's your offer". I am a BCC recipient of these messages, and I want to send the message to the actual recipient, not to the se

  • Can I use Oracle 11g Developer tools with 10G and XE

    Hi, I want to use Oracle 11g ODAC 11.1.0.6.21 with Oracle Developer Tools for Visual Studio with 10g and Xe . Will there be any issues. I want to do so because I am not able to see Oracle Database project in Visual Studio when I install Oracle 10 g d

  • Contact names in mail don't match addressbook names?

    When I recieve an email I look at the senders name in the headers and it says Zendia 3097, but Zendia is listed in my addressbook as Zendia Koroso and has a picture. When I click on the email address in mail the options are only to add as a new addre

  • RV016 , to view current connections

    Hello,      We recently moved to a new office and currently have three ISPs(DSL, SAT, 4G) because we are unable to get Cable nor Fiber services.  We have anywhere between 7-20 Remote Desktop connections(with lot of file transfers) and 8 VOIP lines. 

  • I downloaded the 30 day trial 22 hours ago, but now InDesign says my trial has expired?

    I downloaded the 30 day trial for InDesign, Acrobat and Encoder on my new MacBook less than 24 hours ago, but when I tried to open InDesign just now, it said that my trial has expired. It worked perfectly this morning. Is there something I need to do