Can anyone explain nonpredefine exception with real world example

Can anyone explain nonpredefine exception with real world example

Is this what you mean?
i.e. When others catches all errors - so it is not predefined
Predefined errors are things like no rows, too many rows etc - meant to catch specific errors
It is the difference between tolerating one 'bad' thing specifically and tolerating all 'bad' things.
DECLARE
   v_text  varchar2(1);
BEGIN
   v_text:= 'THIS STRING IS TOO LONG FOR THIS VARIABLE';
EXCEPTION
   WHEN OTHERS --this is non error specific and generally VERY BAD practise as it suppresses all errors
       dbms_output.put_line('Whatever you want to do when an unknown error manifests here');
END;

Similar Messages

  • Can AnyOne Explain Parameterized View with Example

    Explain the parameterized view with example

    Cathrin wrote:
    Hi ,
    I have created a view...
    CREATE OR REPLACE VIEW V_UNITS_UNITMOVEMENT_AMTEST(fromdate varchar,todate varchar)
    ... 127 more lines (no kidding)
    Group By A.Code,A.UDate,B.Scheme_Description,A.DividendOption,C.DividendType_Name,A.NAV,A.Units
    when i execute i get this error ...
    ORA-00907: missing right parenthesis
    what should i do?First, indent your code to show the extent of structures that extend over several lines, such as subqueries, CASE expressions, or function calls that have nexted arguments.
    Make parentheses line up so that, if a ) has to be lines away from its matching (, then are indented the same amount, with nothing except white space between them.
    When posting code (or any formatted text) on this site, type these 6 characters:
    \(small letters only, inside curly brackets) before and after sections of formatted text, to preserve spacing.
    Note that "ORA-00907: missing right parenthesis" doesn't always mean you have unbalanced parentheses.  Often, it just means that something (such as an Oracle keyword) appears at a point where it doesn't make sense, but where a ) would make sense.
    Second, develop code in very small increments.  Take baby steps. Start with a very small, simple query, test it, then add one or two more lines.  When you get a mysterious error like "ORA-00907: missing right parenthesis", chances are there was a mistake in the one or two lines you just added.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Can anyone explain what is happening in this example?

    Take a look at the following bit of CFML:
    <!---\\ This is a coldfusion comment \\--->
    <cfif false>
              <cfsavecontent variable="Test">
                        <?xml version="1.0" encoding="utf-16"?>
              </cfsavecontent>
    </cfif>
    <!---\\ Some other coldfusion code \\--->
    <cfset Foo = 'Hello '>
    <cfset Bar = 'World'>
    <cfset FooBar = Foo & Bar>
    Seems like some simple test code right? Shouldn't generate any output at all right? Now take that sample and go run it. Are you staring at a jumble of oddly encoded characters that basically contain all of the unprocessed CFML code on the page? Because that's exactly what I'm looking at.
    It's the craziest thing! The root issue is the "utf-16" attribute of the XML declaration. If you remove that or change it to something like "utf-8", everything is fine. The points that really muddle my brain are:
    The XML declaration is inside a "cfsavecontent" tag so it should just be a string
    The "cfsavecontent" should not even be evaluated because it's inside of a "cfif" that's hard-coded to false
    My coworker came across this while trying to save some XML as a string so he could write it to a file later. It really seems like a crazy bug to me but I'd like to hear what others think is going on here. For your info, we're running CF9 standard on a Win2k8 R2 system.

    The only thing I can think is that the file itself is saved with UTF-16 encoding, and the CF compiler is baulking at that. That said, I emulated this on my PC and my CF install (same as Duncan's, we work in the same office) dealt with it just fine.
    If the file is saved in any sort of non-ANSI encoding, you will need a <cfprocessingdirective> at the top of the file to tell the CF compiler how to read the file.
    Adam

  • Can anyone explain me abt Defining Celleditor /cell exceptions?

    hi all,
    Can anyone send me some screen shots abt cell editor / cell exceptions ? what is it significance to my email id [email protected] can anyone explain me with an example.
    regds
    hari

    Hi Hari,
    We use <b>Cell Editor</b> when we have Complex query with two structure used to avoid the results getting collapsed,
    It is very useful to resolve complex scenarios. For example, using it in aging analysis report which supports three different periods (aging by key date, aging as of last month and aging as of last year). For each row, the calculation is different based on key date, last month and last year.
    How to document on Cell Editor(E.g),
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ce496e17-0301-0010-e0b4-b8ca8b4588ac
    URL for <b>Defining Exception Cells,</b>
    http://help.sap.com/saphelp_nw04/helpdata/en/cb/89fa3a0376a51fe10000000a114084/frameset.htm
    Regards,
    Mani
    Message was edited by:
            Manikandan  A

  • I got an iphone from Hong Kong which is locked one. Can anyone explain me what does a locked iphone means. How do I use it in India now, with my own sim card. How do I unlock it???

    I got an iphone from Hong Kong which is locked one. Can anyone explain me what does a locked iphone means. How do I use it in India now, with my own sim card. How do I unlock it???

    If your iPhone is locked to a wireless provider, only that wireless provider
    can unlock it. Contact the wireless provider in Hong Kong to see if they
    offer unlocking and if you qualify.
    If your iPhone is locked to an AppleID that you do not know, return it for
    a refund as it is useless. Only the person whose AppleID was used for
    activation can remove the lock. There is no workaround for Activation Lock.
    If neither of the above is what you are facing, provide more detail so someone
    may offer a solution.

  • My ipod 60gb classic is showing as fully charged until I connect it to my pc when it comes up with the error message, 'please wait very low battery' and the little wheel goes round and nothing happens, can anyone explain why this is and what i can do?

    My ipod 60gb classic is showing as fully charged until I connect it to my pc when it comes up with the error message, 'please wait very low battery' and the little wheel goes round and nothing happens, can anyone explain why this is and what i can do?

    I have worked my way through the assistant and nothing works. I have tried connecting in disc mode but although the screen on the ipod is showing that the device is charged and that it is in disc mode as soon as I connect it to the computer it comes up with the error message 'please wait very low battery' and stays like that until I disconnect when it appears to be OK again. I have tried on both pc and mac.
    BTW the ipod is an ipod video not classic if that makes any difference.
    Thanks

  • HT1752 I am working on a chart in paged with 7 columns. Problem has occurred with amount of row. I have completed 999 rows and it won't allow me to continue. As I need to do approx 3000+ rows, can anyone explain to me how to add extra rows. Thanks Jane

    I am working on a chart in pages with 7 columns.
    Problem has occurred with amount of rows. I have completed 999 rows and it won't allow me to continue. As I need to do approx 3000+ rows, can anyone explain to me how to add extra rows. Thanks Jane

    Try posting in the Pages forum
    https://discussions.apple.com/community/iwork/pages

  • Can anyone explain the integration of sd and mm with fico

    Hi all,
    Can anyone explain with an scenario how fico integrates with sd and mm.
    thanxs
    regds
    hari

    the following organisation units are to be set up to integrate SD with FI.
    1. Sales organisation
    2. Plant
    3. Storage location (under material management)
    4. Shipping point
    5. Distribution Channel
    6. Division.
    In addition u can also create sales office, sales group but it is optional.
    In order to integrate, follow the following steps:
    1. Assign sales organisation to co code.
    2. Assign plant to company code.
    3. Assign distribution channel, division to sales organisation
    4. Determine sales area (it is a combination of sales organisation, distribution channel and division)
    5. Assign SO - Distribution channel - Plant
    6. Assign sales area to credit control area.
    7. Assign shipping point to plant (under logistics execution).
    After defining and assigning the organisation units, u can view the properly integrated structure under Tcode EC01.
    Having created the above SD organisation units, there are only a few more to create for FI-MM integration.
    1. Purchasing organisation.
    2. Valuation level ( generally plant)
    3. Location (optional and need to be created only when required by client)
    On creating the above,
    1. Assign Purchasing org to co code.
    2. Assign purchasing orgn to plant
    3. Assign business area to plant / valuation area ( in this state the business area against your plant).
    Hope this solves your query.
    Assign points if useful.

  • My wife, daughter and I have iPhones. We all have iMessage and Send Read Receipts activated. All the messages sent between the three of us are blue except those that my wife sends to me. They are green. Can anyone explain why.

    My wife, daughter and I have iPhones with iMessage and Send Read Receipts activated. All the messages sent between the three of us are blue however, when my wife messages me, the message appears in green on her iPhone. Can anyone explain why.

    Because some kind of error occured.  This is only from her iPhone to your iPhone?  Whenever she sends a message to any other iPhone, it is sent as blue?  And when anyone else sends you a message from an iPhone, it sends as blue?

  • TS3988 I have an icloud account and I view my mail with Mail V5.2. I recieve my email but the senders get messages saying the delivery failed. Can anyone explain this or help me.

    I have an icloud account and I view my mail with Mail V5.2. I recieve my email but the senders get messages saying the delivery failed. Can anyone explain this or help me.

    Thank you for replying.    Yes I deleted the old email address..   

  • HT1665 I am trying to connect my Samsung Bluetooth device with my new Iphone 4S.  Can anyone explain how this is done?

    I am trying to connect my Samsung Bluetooth device to my new Iphone 4s. Can anyone explain how this is don?

    Which Samsung Bluetooth device?
    Please note that the iPhone will not pair with other phones, tablets, etc for purposes of file transfer.

  • Can anyone explain how to download and upload TROY ECF fonts with SAP

    Can anyone explain how to download and upload TROY ECF fonts with SAP.I have downloaded ECF font from TROY wesite as TTF format. but it is not getting upload with SAP.please kindly help me on this issue..

    Hi,
    You can use the SE73 Transaction and upload your TTF files.
    Please check the link here for more details:
    http://help.sap.com/saphelp_nw70/helpdata/en/36/5b3438fd263402e10000009b38f8cf/frameset.htm
    Regards,
    Siddhesh

  • Can anyone explain with senairio for formula variables with replacement  pa

    can anyone explain with senairio for formula variables with replacement  path?

    See the below link
    An Example for Replacement path
    http://www.sd-solutions.com/documents/SDS_BW_Replacement%20Path%20Variables.html
    Document Count using Replacement path
    I've explained the steps in this thread.
    Query formula-Counter???
    Example for Replacement Path: Characteristic Variable.
    http://help.sap.com/saphelp_nw04/helpdata/en/2c/78a03c1178ad2ce10000000a114084/content.htm
    Variable Replacement Example
    http://help.sap.com/saphelp_nw04/helpdata/en/af/809528939d5b4fbff7e16a5bdc0d85/content.htm
    Formula Variable.
    http://help.sap.com/saphelp_nw04/helpdata/en/ca/5f9ac61a205a459d0e7ef313d10321/content.htm
    Regs
    Gopi
    Assign points if it helps

  • Can anyone explain with senairio for textvariables with replacement  path?

    can anyone explain with senairio for textvariables with replacement  path?

    Hi
    your query contains 3 columns...
    column1(year executed by user) column2(year-1) column3(year-2).
    when user enter 2006 key figures headings should appear like this
    2006 2005 2004...
    How can you solve this??
    so create a text variable of replacement path..replace with object year..
    so you will get the above out put..
    you can concatenate like
    actuals 2006 actuals 2005 actuals 2004...
    Hope it clears...
    please assign points if useful
    Thanks
    Teja

  • Can anyone explain error: can not access a member .. with modifiers ""

    Can anyone explain why this would occur:
    javax.faces.FacesException: Can't instantiate class: 'com.package.MyBean'.. class com.package.MyBean : java.lang.IllegalAccessException: Class java.beans.Beans can not access a member of class com.package.MyBean with modifiers ""

    also if the class is not defined as public
    myClass()
    public myClass()
    i got this when building my custom class loader and it took me sometime to figure this out since my editor generates my class templates I didn't even think to check something as basic as not having a public class - hopefully this saves someone else some trouble

Maybe you are looking for

  • Black screen when trying to boot to CD (using Option or C) on startup

    Hi, everyone. I'm working on a Mac Mini (mid-2011 vintage) with an attached Superdrive (recently purchased). My monitor is an older VGA monitor linked up to the mini using a Mini DisplayPort to VGA adapter (plugged into the Thunderbolt port). Video r

  • If I use a LDB in the Attributes of the Program what happens?

    Hi friends,                I have to modify a standard program RFRECPSFA410. which i need to add some more fields in the output layout. It is a standard program. In the attributes of the program he used the LDB name RECN. And while debugging i found

  • ABAP Dump on Approving Travel Request

    Hello, We are implementing MSS and when a manager is trying to open a Workitem to Approve a Travel request he gets the following ABAP Dump. The following error text was processed in system R3Q : Value null of URL parameter SAP_FITV_PERSNO has the wro

  • Report writer issue during upgrade from 4.6 to ecc6

    Hi all, On generating report of report writer through GR5G (we are regenerating because we were getting dump for this report after up gradation from 4.6c to ecc6)we found one syntax error. The error is in auto generated program we can see that error

  • IOS 6.0.1 iTunes and battery problems

    IOS 6.0.1 wiped my itunes library and left it inoperable.  It also made the battery life so bad that it is unusable unless plugged in. This even occurs when the ipod is in airplane mode. Anybody ideas?