The use of a stand alone RAISE statement

What is the point of having a standalone RAISE statment (ie a RAISE statement without arguments).
BEGIN
DECLARE
e_UserDefinedException EXCEPTION;
BEGIN
RAISE e_UserDefinedException;
END;
EXCEPTION
WHEN OTHERS THEN
/* Just re-raise the exception, which will be propagated to the
calling environment */
RAISE;  --the standalone RAISE statement
END;
/When i create a package with several functions and procedures inside I always create a caller procedure called callProcs, which will execute various procedures in the appropriate order.
procedure callProcs(p_ship_type in varchar2)
     is
             --execute proc1
                 procedure1();
          --execute proc2.
          procedure2();
          --execute proc3.
          procedure3();
          --execute proc4.
          procedure4();
       --commit the transaction.
          commit;
              exception
                    when others then
                    err_msg:=SQLERRM;
                   --dbms_output.put_line (err_msg);
                  dbms_output.put_line('Rolling Back');
                      rollback;
end package_name;
/proc1,proc2 and proc3 has Exception handling like the following
exception
when others
THEN
error_message :='My custom message for the particular proc '||SQLERRM;
dbms_output.put_line(error_message);
logerror(error_message); --an autonomous error logging proc
end;According to the documentation, i should include a standalone RAISE statement like below so that the error is propogated out to calling environment ie.callProcs procedure. But this RAISE statement is not necessary. Right?
exception
      when others
      THEN
      error_message :='My custom message for the particular proc '||SQLERRM;
      dbms_output.put_line(error_message);
      logerror(error_message); --an autonomous error logging proc
      RAISE;
end;

The RAISE is used inside the exception handler_.
If you "handle" the error and are satisfied that it has been handled then there is no need to RAISE it back up to the calling code.
If you are just capturing the error i.e. to log it, but you aren't handling it then you should RAISE it back up to the calling code. Somewhere up the chain of calls the error should get handled or, if not, it will exit out of the top of the code and the error will be given to the program that called the code e.g. SQL*Plus etc. which can choose what it does with the error (usually displaying it to the user).
PL/SQL 101 : Exception Handling
PL/SQL 101 : Exception Handling

Similar Messages

  • Can Motion be used as a stand-alone app, without FCPX?

    Can "Motion 5" be used as a stand-alone app, without FCPX?

    Yes.
    It's loud.
    70-some decibels of loud, particularly when the fans spool up.
    And you need a big flat spot, or a 19" rack.

  • Can Xserve  be used as a stand alone computer ?

    can Xserve be used as a stand alone computer ? ..
    with monitors and other hardware connected to it ?

    Yes.
    It's loud.
    70-some decibels of loud, particularly when the fans spool up.
    And you need a big flat spot, or a 19" rack.

  • Time capsule - WiFi - can it be used as a stand alone station?

    I have set up my Time Capsule as a WiFi station and it is showing as connected to my iMac, but the amber light it flashing and I cannot get it to go green.  Do I HAVE to connect it to my external router or can it be used as a stand alone WiFI station?  If so, how do I get the light to stop flashing?  The TC was connected by ethernet cable (green light) but that seemed to slow down my access to the Internet so I disconnected that.  Now I can see the back ups but cannot restore from any of them.
    Regards
    Oldmoondog

    The Time Capsule must connect to a modem or other router using a wired Ethernet connection.
    The only exception to this would be a setup where you have one Apple router set up as your "main" router connected to the modem.  In that case, it would be possible for the Time Capsule to connect to the main Apple router using a wireless connection.
    Assuming that the Time Capsule is operating correctly, and that it has been set up correctly, there should be no speed loss when a Time Capsule connects to a modem or other router using an Ethernet connection.
    For example, I have a 50 Mbps Internet connection plan from my Internet Service Provider (ISP). If I cannot the Mac directly to the modem, my speed is usually about 52-55 Mbps.
    If I connect the modem to the Time Capsule using Ethenret, then connect the Mac to the Time Capsule using Ethernet, the speed is almost exactly the same, about 51-54 Mbps.

  • I want to reset (clean out) my old 4S.  I have just bought a 6 and have the 4S as a stand alone unit (No connection to network.  I can not get the sitcom to do the erase all command.  It wants to access the Cloud which is impossible.

    I want to reset (clean out) my old 4S.  I have just bought a 6+ and have the 4S as a stand alone unit (No connection to network).  I can not get the system to do the erase all command,  it wants to access the Cloud which is impossible.  Is there anyway to 'Erase All Content and Settings". 

    Something here might help a detailed list of actions
    What to do before selling or giving away your iPhone, iPad, or iPod touch - Apple Support
    refer to If you no longer have iPhone  section

  • T's possible to use the jsp to develop stand-alone application?????

    Hello everybody, I would like to know your considerations about this topics: It's possible to use jsp to develop stand-alone application that will be not run on the server but on the local machine?There are some negative aspects on make this? Thank you for your reply

    i don't think you could ever protect the jsp code and it wouldn't do you much good to bother anyway, since anyone with a browser can just "View Source" and see all the HTML on the page anyway.
    the only thing you would want to protect is your java source. you don't have to distribute the .java files with your application, just the .class's. you could try and obfuscate the .class files, but a determined person will always be able to reverse it back to a .java program and read it. it would take a bit of work and knowhow though, so figure out how smart the consumer is going to be and if they will be able to figure out how to reverse .class files back to .java

  • Can the new airport be used as a stand alone to the printer for the iPad

    Can the new airport express be used with a network printer as a stand alone with just a iPhone and a iPad, no computer to set it up with?
    It has Internet access.

    You're referring to Target Display Mode Mid 2011 iMacs  this letter will explain how it works or in your case will not work () with your mid 2010 MBP. Sorry to be the bearer of bad news.

  • How to use Preloader with stand-alone application in Eclipse? Thank you.

    My IDE is eclipse and my project is a stand-alone application(pure CS architecture with OSGI framework).
    How to use Preloader thus the preloader would be started before my main Application and hid later?
    I found some code in http://docs.oracle.com/javafx/2/deployment/preloaders.htm#BABGGDJG
    but I still don't know how to deploy the Preloader with my startup Application in OSGI framework.
    I give some code of my startup application below:
    public class MyPrjMain extends Application
        private static Stage primaryStage;
         public void start(final Stage stage)
            throws BusinessException
            primaryStage = stage;
            init(primaryStage);
            primaryStage.show();
    }Thanks very much, everybody.
    Edited by: Slash Wang on 2013-2-27 下午5:36

    Your question has already been answered on StackOverflow:
    http://stackoverflow.com/questions/15126210/how-to-use-javafx-preloader-with-stand-alone-application-in-eclipse/15148611

  • I Need an In house Media Library, either as part of the Creative Cloud or stand alone - Do you??

    I'll explain why you might, as a small video production/graphics company, I mainly do repeat video & graphics work for the same 40+ businesses,
    year in and year out. When I'm out and about if I see anything that might be usefull as stock photo/video footage I grab it,
    and take it home, however finding that right file/photo/shot six months later is too hard in 14tb of attached and archived storage
    besides good quality, local stock photos/footage is expensive.
    I'm thinking of a program that would span all of the Adobe products (3D, CorelDraw & CAD too would be great),
    Allowing you to enter, alter and read the Metadata, GPS, tags, notes & file info (size etc) from Lightroom, Bridge & Prelude etc.
    across every project your machine is connected to including external (usb) & nework drives (lan).
    Save the metadata from the media to a database program on your local machine or server
    that let's you do Google like searches
    I think the main points from my point of view are:
    #1 Uses/reads existing meta data fields, no point in reinventing the wheel and all adobe products will work
    #2 That metadata fields are then saved to a database that lives on your local machine (
    #3 Drives names are saved not just paths (ie "Back Up Drive No04")
    #4 A thumbnail is saved to a database
    #5 You can manually index a drive or dir and then look at the existing
    metadata & thumbnail and add notes, (job, additional info or client name)
    #6 Batch add notes IE Select Dir/ and add job or client name to all selected files
    #7 Adding note’s is additive IE; If you had existing metadata/notes batch adding would not delete anything just add
    #8 SEARCH Fuzzy, Date, File Type & Boolean search IE “Truck” after “june 2013” file type “MOV “
    Yes, I know that Adobe has a digital asset management (DAM) system, but that's not designed for a smaller 1~4
    user video or graphics company, it's too big, too much, and I'm guessing too damm expensive
    (anything that doesn't have a price and just says "call Us" is  too damm expensive)
    I'd love to hear everyones key points/needs,
    and if you thought is is a good idea.
    Peter Fitz
    BlueCrystal Creative
    Marketing, Advertising & Social Content By BlueCrystal Creative

    There's a dedicated forum for feature requests.  Look it up on the forums directory.

  • BPM 10.3 Studio how to use PAPI from stand alone java client

    Would you help me ...., the search for the relevant information in this forum or documentation has not helped!
    I'm running the BPM process via studio and trying to call it from the standalone java program.(According documentation
    I need ... fuegopapi-client.jar and directory.xml )
    Well, of course I could find somewhere directory.xml but it is not the right one .. What are the values(related to directory Service) which are needed to run this
    java code agains the process started from the studio... ? So what I should do...? to setup and configure in BPM10.3 Studio to be able to run this code agains the
    BPM process ...?
    thanks a lot
    Tomas
    ..otherwise the java code look like this ...
    public static void main(String[] args) {
    /////////////////// API Initialization ///////////////////
    Properties configuration = new Properties();
    configuration.setProperty(ProcessService.DIRECTORY_ID, "default");
    configuration.setProperty(ProcessService.DIRECTORY_PROPERTIES_FILE, "directory.xml");
    configuration.setProperty(ProcessService.WORKING_FOLDER, "c:\tmp");
    try {
    ProcessService processService = ProcessService.create(configuration);
    /////////////////// Establish a session ///////////////////
    ProcessServiceSession session = processService.createSession("test", "test", "localhost");
    /////////////////// Operate with PAPI ///////////////////
    for (String processId : session.processesGetIds()) {
    System.out.println("\n Process: " + processId);
    for (InstanceInfo instance : session.processGetInstances(processId)) {
    System.out.println(" -> " + instance.getId());
    /////////////////// Close the session ///////////////////
    session.close();
    /////////////////// Release API Resources ///////////////////
    processService.close();
    } catch (CommunicationException e) {
    System.out.println("Could not connect to Directory Service");
    e.printStackTrace();
    } catch (OperationException e) {
    System.out.println("Could not perform the requested operation");
    e.printStackTrace();
    }

    Would you help me ...., the search for the relevant information in this forum or documentation has not helped!
    I'm running the BPM process via studio and trying to call it from the standalone java program.(According documentation
    I need ... fuegopapi-client.jar and directory.xml )
    Well, of course I could find somewhere directory.xml but it is not the right one .. What are the values(related to directory Service) which are needed to run this
    java code agains the process started from the studio... ? So what I should do...? to setup and configure in BPM10.3 Studio to be able to run this code agains the
    BPM process ...?
    thanks a lot
    Tomas
    ..otherwise the java code look like this ...
    public static void main(String[] args) {
    /////////////////// API Initialization ///////////////////
    Properties configuration = new Properties();
    configuration.setProperty(ProcessService.DIRECTORY_ID, "default");
    configuration.setProperty(ProcessService.DIRECTORY_PROPERTIES_FILE, "directory.xml");
    configuration.setProperty(ProcessService.WORKING_FOLDER, "c:\tmp");
    try {
    ProcessService processService = ProcessService.create(configuration);
    /////////////////// Establish a session ///////////////////
    ProcessServiceSession session = processService.createSession("test", "test", "localhost");
    /////////////////// Operate with PAPI ///////////////////
    for (String processId : session.processesGetIds()) {
    System.out.println("\n Process: " + processId);
    for (InstanceInfo instance : session.processGetInstances(processId)) {
    System.out.println(" -> " + instance.getId());
    /////////////////// Close the session ///////////////////
    session.close();
    /////////////////// Release API Resources ///////////////////
    processService.close();
    } catch (CommunicationException e) {
    System.out.println("Could not connect to Directory Service");
    e.printStackTrace();
    } catch (OperationException e) {
    System.out.println("Could not perform the requested operation");
    e.printStackTrace();
    }

  • Using a Mac Mini Server as a traditional stand alone desktop

    Hello all, currently I have a late 2008 model 17" MacBook pro, Time Capsule, Apple TV and an Iphone 3GS and Ipod Traditional. I would like to add a desktop system to coordinate all of these items, to be the centerpiece is you will, in my home. I'm interested in buying a mac mini, I began to do research however and saw the Mac Mini Server which has greater memory capacity 4GB vs 2GB RAM, and dual 500Gb vs the standard Mac Mini which has one at 320GB. I would like to take advantage of these upgrades as I'm a writer and will be constantly on the web for work as well as likely keep a lot of items on the hard drive.
    However I noticed the Mac Mini server utilizes Mac OSX snow leopard SERVER as opposed to the user grade Mac OSX. *My question is if the Mac Mini Server with MAC OSX server can still be used as a stand alone desktop, connecting it to a spare LCD television I have and a mac wireless keyboard/mouse?*
    I'm aware that unlike the other mac mini and imacs it does not come with ilife and other pre-installed software, and *I want to know if it's still possible to purchase after market and install said software utilizing them in the traditional manor?*
    Thank you in advance for any feedback you can provide and I apologize if my question was difficult to comprehend due to my lack of computer knowledge. I also apologize if this question is similar to others you've received lately as I did a quick scan of google and these forums and did not seem to find the specific answer I was looking for.

    Welcome to the Apple Discussions!
    Let me clear up a misperception that you have. Both the Mac mini and the Mac mini Server have a capacity to address 8 GB of RAM. There are two SO-DIMM slots in each model. The mac mini comes preconfigured by Apple with 2 GB of RAM (2 x 1 GB). The mini Server comes preconfigured with 4 GB of RAM (2 x 2 GB). You can buy and install yourself up to 8 GB of RAM (2 x 4 GB).
    You can even install Mac OS X Snow Leopard client, which will meet your needs a bit better than Server, now that folks have figured out how to do it;
    http://discussions.apple.com/thread.jspa?threadID=2539663&tstart=0
    And yes you can buy and install iLife, and pretty much everything else that you want to include in your kit. Either model of mini works fine with wireless keyboards and mouses. If your LCD TV has an HDMI port, then a simple HDMI to HDMI cable would be the simplest manner to connect it to the mini.
    Dah•veed

  • Error in obtaining token using TokenManager thru a stand-alone java appln

    I am trying to use the IS Java APIs to connect to the directory server and insert a user in the directory from a stand alone java appln.
    I get an SSOException while trying to obtain a Token object from the TokenManager (TokenManager.createSSOToken() method ).
    Following is the dump of the error:
    Exception Message: LDAP authentication failed.
    com.iplanet.sso.SSOException: LDAP authentication failed.
    at com.iplanet.sso.providers.dpro.SSOProviderImpl.createSSOToken(SSOProv
    iderImpl.java:94)
    at com.iplanet.sso.SSOTokenManager.createSSOToken(SSOTokenManager.java:2
    57)
    at SampleUserOperations.main(SampleUserOperations.java:51)
    However, the principal and password supplied in the code are correct. Following is the code that generates this error.
    public static void main(String[] args)
              int count = 0;
              SSOTokenManager Manager = null;
              SSOToken Token = null;
              AMStoreConnection AMConn = null;
              try
                   //create a token
                   Manager = SSOTokenManager.getInstance();
                   System.out.println("Got a token mgr");               
                   Token = Manager.createSSOToken(new AuthPrincipal("uid=admin,ou=administrators,ou=topologymanagement,o=netscaperoot"), "abcdefg123");          
                                  System.out.println("Got a token");
                   AMConn = new AMStoreConnection(Token);
                   System.out.println("Got a conn");
              catch (com.iplanet.sso.SSOException e)
                   count++;
                   System.out.println("COUNT = " + count + " : " + e);
    The credentials provided in the code are correct. What could be the cause of the error?
    TIA,
    siddharth.

    Tthis class is undocumented and this is the reason why you will not find any documentation. This is not the correct way for a client to authenticate to the is in v6. You need to use the JAAS API. I do not believe that the AuthPrincipal sample works in 6.
    The package for the class is com/sun/identity/authentication/internal/
    rdgs
    Steve

  • Can a inspire p5800 be used without a computer, as a stand alone speaker system

    Can an Inspire P5800 be used as a stand alone speaker system? Here is my story. I just got this speaker system from my girlfriend who did not know that it had to be hooked up to a computer/soundcard etc... She thought it would just hook up to my MP3 player and be used as a speaker system downstairs in my shop. It looks like the decoder DDTS-100 could be bought and used as a stand alone sound adapter? Or is there a cheaper way? The only other way I can see is a triple headphone adapter that has one 1/8 inch plug going to three 1/8 inch jacks that can be fitted with a 1/8 inch plug to plug cable in each jack, then those going into the back of the subwoofer/connector area. Would that be a mono source that way? Any help would be appriciated. marc

    I have set this system up with a creative zen vision m without using a computer just stand alown, but i have only been able to get the subwoofer, front left and right speaker to work. I dont know if that helps.

  • TREX Admin Tool (Stand-Alone)

    Hello-
    I am new to the forums, so if I am posting in a wrong area please let me know so I can correct this; thanks in advance for your patience.
    Now the question.  I am interested in using the TREX Admin Tool (Stand-Alone) to manage our multiple TREX 7.0 and TREX 7.1 systems.  Can anyone tell me where I go in the market place to download this tool and any links to the documentation on this tool. 
    I have already found SAP Note 766516 and the following link on help.sap.com on the subject:
    http://help.sap.com/saphelp_nw04s/helpdata/en/40/1726d3aef809b8e10000000a114cbd/content.htm
    Any and all input, suggestions, help, flames, etc. are greatly appreciated.
    Kind Regards,
    Nathan Sunderman
    SAP Enterprise Team
    Dept of Information Services
    State of Washington
    Computer Services Division
    [email protected]
    ~~

    Hi Nathan,
    the Python based TREX admin tool (stand-alone) is part of the TREX 7.0/7.1 installation. You do not need to download it seperately, when you have downloaded and installed TREX.  Note that also a transaction TREXADMIN exist by which you can start the ABAP based version of the TREX admin tool in the SAP System if you are using TREX by an ABAP application via RFC.
    For docu how to start and how to use the TREX 7.0 admin tools see:
    http://help.sap.com/saphelp_nw70/helpdata/en/3f/fcb705c1ce131fe10000000a114cbd/frameset.htm
    There will be also an admin docu about using TREX 7.1 by NW 7.0 applications. This docu will be available on SAP Help Portal as of NW 7.0 SP14 during January.
    For the most current info + docu about TREX and TREX configuration see also:
    SAP Service Marketplace:
    https://service.sap.com/instguides
    --> SAP NetWeaver --> SAP NetWeaver 7.0 (2004s) -->  Installation -->  3 - Installation - Standalone Engines --> SAP NetWeaver Search and Classification TREX
    There you find the Installation & Implementation Documentation Center for TREX 7.0 and TREX 7.1 with links to the TREX install guides for installing and configuring single host as well as multiple hosts landscapes. Note the prerequisites for using TREX 7.1 by NW 7.0 applications.
    See also the SAP internal TREX Portal
    http://trex.wdf.sap.corp:1080
    for most current info about TREX.
    Regards,
    Ralph Schroeder/TREX documentation

  • Ni-daqmx stand-alone matlab

    Dear all,
    I am about to compile my matlab code into a stand-alone program, which works fine. However, as soon as I start the data acquisition the program fails to initialize the DAQ-board.
    I'm using the NI-9201 USB-ADC in combination with the NIDAQmx driver.
    I localized the problem: When trying to initialize the ADC the program fails, since the required dll's are not available. I also localized the dll's and copied them into reach for the stand-alone, but it doesnt work.
    As long as the MATLAB\toolbox\daq\daq\private folder is reachable for the programm/Windows, the software works. However, on the custumers computer I dont want to have MATLAB installed (what sense does it makes to have the option for distributing a stand alone version if the customer has to buy a MATLAB licence?). 
    Can anybody help me solving this problem?  Are there any dll's I may copy into reach of the stand-alone? 
    (Just as information:  The NI - Measurement and Automation was installed on the "customer-computer", In fact it was the exact same computer with the only difference that I renamed the MATLAB folder)
    I'm looking forward to your suggestions!
        Bastian

    The MTALAB toolbox of question is the dataacquisition toolbox, everything else works fine
    The Matlab run-time is not the problem in generell, since everything except of the NIdaqmx-dll's is linked in the program. Here a short description how it works in matlab. 
    - you write code, GUI's etc. and test the program in Matlab
    - then you compile the application into a stand-alone
    - if you hand it to a thrid person that has no Matlab licence, you also distribute the MATLAB-Runtime-Environment (MRE)
    - the person installes this freely-distributable MRE on his computer and then runs the compiled program
    All functions in the program are able to run, except of the NIdaqmx. As soon as I the program tries to communicate to the ADC (i.e. open a channel) the program fails. However, when I provide the dll's mentioned in the exact same directory as they were in Matlab, it works. So I'm not sure what tells the MRE that the dll's are in that folder, since it didn't work, when I just copied the dll's in the run-time directory of the stand alone. 
    Since the program that I would like to distribute is quite complex, re-writing the hole thing in LABView is not an option for me (also, I have no experience with LabView at all, which would require some time to get into it).
    The solution I aim for would be:
    1st (best solution)
    I just do something in the program to have the dll's compiled and linked to in the stand-alone
    2nd
    when installing the program I provide the dll's. (But I dont want to provide them in the folder ..\MATLAB\...\daq\daq\private\...)
     If you dont have the experience with matlab, do you know someone I could ask for this?  Maybe a Matlab forum that addresses NI-ADC questions?
    Thank you for your support!
       Sebastian

Maybe you are looking for

  • Service Desk - Solution Database - Solution retreival

    I am trying to setup solution database for service desk. 1. I have set up TREX on the same host 2. Connected ABAP and TREX through a TCP/IP RFC 3. Completed configuration for the solution database using the available wizards 4. CRM_SAF_TOOL- all chec

  • Card index software for MAC

    Does anyone know of some good software that acts like a card-index - somewhere I can store information about books that I read/reviews/quotations? I've tried 'Googling' card-index software for mac, and various other permutations, but not come up with

  • IMessage won't sign in

    Hi, I recently upgraded to Yosemite. Have been trying to log in into my iMessage account and the spinning thingy of death will continue spinning forever, without login in. Thanks!

  • I am having problems reinstalling Acrobat 7

    Hi, I'm an owner of ancient G5 Mac and CS2 Premium, which I had to reinstall this week. This means also GoLive2 and Acrobat7 in the package. The links you provide are apparently CS2 Standard. I can download GoLive2 separately, but I can't see ANY pos

  • Adding a Structure in SAP QuickView

    Hi, I have to make a report in QuickView using the tables VBRK, VBPA, VBFA. Also, I need information from Structure KONV (Condition records), but I cannot join it as a table. How should I proceed? Thanks for your help! Cristiana