Try: Assign The Error Number To A Variable

Hi, All!
I know there must be a way to do this, but I can't find it.
In the 'On Error' part of a Try, is there a way to set the error number to a variable?
So, I'd like it to look something like this:
on error
set errorNum to [the error number]
if errorNum =
Something like that.
How do I do that?
Thanks in advance!
Any help much appreciated!
-Nate

The error number is a number, not a text string
<pre style="
font-family: Monaco, 'Courier New', Courier, monospace;
font-size: 10px;
font-weight: normal;
margin: 0px;
padding: 5px;
border: 1px solid #000000;
width: 720px;
color: #000000;
background-color: #FFEE80;
overflow: auto;"
title="this text can be pasted into the Script Editor">
try
display dialog "Generate an error?" default answer "script generated error"
error text returned of the result -- make a custom error
on error errorMessage number errorNumber
if errorNumber is -128 then
-- do nothing (cancel)
else
display alert "Error " & errorNumber message errorMessage
end if
end try
</pre>

Similar Messages

  • I want to assign the value of a Javascript variable to JSP Variable

    I want to assign the value of a Javascript variable to JSP Variable .. for example :
    <%
    Bla Bla Bla
    %>
    <script>
    var JavaScriptVariable="hello"
    </script>
    <%
    String JSPVariable=// The Value of JavaScriptVariable ;
    %>
    How can i do that ??
    Thanks

    >I want to assign the value of a Javascript variable to JSP Variable
    cannot be done.Friend try to understand concepts properly Javascript is always excuted by the browser @clientside where as JSPCode is executed Websever(ServletContainer) @serverside.Through you are combining JSP Code blocks(Tags,Expressions,scriptlets...) & javascript under a single page webserver can only identify what is their under JSP Code blocks.
    Hope this could be an appropriate answer for your question.
    However,you can as well submit a request by encoding your URL with request parameters and the submit to the page and then collect it using request.getParameter(name).
    But under a single context state it is not possible
    REGARDS,
    RaHuL

  • "An unknown error has occurred" followed by the error number 1415, 1417, 14

    "An unknown error has occurred" followed by the error number 1415, 1417, 1418, 1428, 1429, 1430, 1436 or 1439.
    I get this when I try to format my iPod. It was mashed by iTunes 9, I took it to the apple store and got it reformatted by a mac. Anyway now I've took it back home I keep getting this error when I try to format.
    I've tried a restart
    Tried updating drivers
    Tried uninstalling then reinstalling
    Tried in disc mode, tried not in disc mode.
    Any ideas?
    Cheers

    Sometimes I get unknown error 1439 too

  • Hi i was told to come to the support with the error number 16.... for some reason my premiere pro stopped working and i am still paying for i but i had to reinstall it, which i dont know how to do though

    hi i was told to come to the support with the error number 16. for some reason my premiere pro stopped working and i am still paying for i but i had to reinstall it, which i dont know how to do though

    Hi Omid,
    Please refer to the help document below to fix the error 16:
    Configuration error 16 | CC, CS
    If the issue persists, please contact the support:
    Contact Customer Care
    Regards,
    Sheena

  • The error number is FRM-92101

    below is my application.log file.
    the error number is FRM-92101.
    Can any one suggest solution for that
    127.0.0.1 (127.0.0.1))
    06/11/23 16:32:30 Started
    06/11/23 16:34:57 forms90web: jsp: init
    06/11/23 16:34:58 forms90web: f90servlet: init
    06/11/23 16:34:58 forms90web: FormsServlet init():
    configFileName: D:\DevSuiteHome/forms90/server/formsweb.cfg
    testMode: false
    06/11/23 16:34:58 forms90web: 9.0.4.0.0 Started
    06/11/23 16:35:37 forms90web: l90servlet: init
    06/11/23 16:35:37 forms90web: ListenerServlet init()
    06/11/23 16:39:20 forms90web: RunformProcess.connect(): failed !
    06/11/23 16:39:20 forms90web: Forms session <1> aborted: unable to communicate with runtime process.
    06/11/23 16:39:20 forms90web: Forms session <1> exception stack trace:
    java.net.SocketException: Software caused connection abort: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
         at java.net.Socket.connect(Socket.java:434)
         at java.net.Socket.connect(Socket.java:384)
         at java.net.Socket.<init>(Socket.java:291)
         at java.net.Socket.<init>(Socket.java:147)
         at oracle.forms.servlet.RunformProcess.connect(Unknown Source)
         at oracle.forms.servlet.RunformProcess.dataToRunform(Unknown Source)
         at oracle.forms.servlet.RunformSession.dataToRunform(Unknown Source)
         at oracle.forms.servlet.ListenerServlet.doPost(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         at java.lang.Thread.run(Thread.java:536)
    06/11/23 16:39:20 forms90web: Connection reset by peer: socket write error
    06/11/23 16:39:20 forms90web: Connection reset by peer: socket write error
    06/11/23 16:45:08 forms90web: l90servlet: destroy
    06/11/23 16:45:08 forms90web: 9.0.4.0.0 Stopped
    06/11/23 16:45:08 Stopped (Shutdown executed by jazn.com/admin from 127.0.0.1 (127.0.0.1))
    06/11/23 16:46:28 Started
    06/11/23 16:50:14 forms90web: jsp: init
    06/11/23 16:50:14 forms90web: f90servlet: init
    06/11/23 16:50:14 forms90web: FormsServlet init():
    configFileName: D:\DevSuiteHome/forms90/server/formsweb.cfg
    testMode: false
    06/11/23 16:50:14 forms90web: 9.0.4.0.0 Started
    06/11/23 16:56:52 forms90web: 9.0.4.0.0 Stopped
    06/11/23 16:56:52 Stopped (Shutdown executed by jazn.com/admin from 127.0.0.1 (127.0.0.1))
    regards
    Amritava Chakraborty
    amritava.chakraborty@gmail

    Hi ,
    Read the doc found on:
    www.oracle.com/technology/products/forms/pdf/forms9idiagnostics.pdf
    Is there some kind of firewall or (reversed) proxy that is not configured properly...?????
    In this case read the doc located on:
    www.oracle.com/technology/products/forms/pdf/10g/advancedformsconf.pdf
    I hope i helped you...
    Regards,
    Simon

  • TS1372 After trying all the above mentioned solutions im still getting the error message"An unknown error has occurred" followed by the error number 1439" Any more solutions or is my Ipod screwed?

    After trying all the solutions suggested by the the people at apple on their web site regarding the error message The ipod"ipod" could not be restored. An unknown error has occured (1439). After try all 9 of the resolutions provived i'm still getting the same message and am no nearer to restoring my ipod? Any suggestions or is my Ipod screwed?

    [email protected] wrote:
    I'm reluctant to post apple ID's in a public support forum, and would prefer to deal with this by private email.  or phone.
    Then contact Apple directly.
    This is a user to user technical support forum.  No one here has access to manage Apple ID's other than their own.
    There is no Apple presence here.

  • Having trouble assigning the Data Type to Shared Variables

    I have some type definitions that I need to use as shared variables.  When making the shared variable, I create it and then name it.  I then select "From Custom Control..." in the Data Type field and select the applicable type definition.  The problem is that it displays some other type definition.  Am I doing something wrong?  I am using LV v.8.6. I don't recall having this problem with v.8.5.1.

    Hi Hunter,
    All the custom controls are set to Type Def.  Since sending my question, I noticed that the system uses the first similarly used custom control and it's name.  For example, I have several clusters that each have four numeric controls in them.  When creating a shared variable for each of the various clusters, it uses the first custom control that was set up as a shared variable.  I hope this makes sense to you.  I have not had a chance to see if the shared variables are working because I have other issues to deal with first. 
    What troubles me is that I don't recall seeing this with v.8.5.1.
    I suppose I could and perhaps should use a common type def for all similarly used shared variables.
    Dave

  • HT1414 i quet the error number 1015

          hi ever body i need help i tried to unpdate my ios 4.1 to 6.0 and than i quet this ..

    Error 1015 is most often given by iTunes as a downgrade error. The most common cause for this is that the iPhone has the iPad baseband installed. The fix for this has recently been made available. This cannot be discussed on this Apple Supported Forum. You will need to search the Web for the complete fix.

  • Including a Matlab Script in a VI I got the error "Failed to send variable to script server." How do I solve it?

    I´m using LabVIEW 6.1 and Matlab 6.5

    Hi Dunns
    There were some problems interfacing labview 6.x and matlab 6.5
    Take a look at this link. Probably, you will have to download the patch for your versions.
    http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/ce309627064a3d5686256a9c005b0a5f?OpenDocument
    Hope it solves your problem.
    Alipio
    "Qod natura non dat, Salmantica non praestat"

  • Getting the:   Error Number: 0x80040707 Description: DLL function call....

    solution that worked for me (copied from another site):
    I found this solution on another website, but I wanted to share it with all of you here. The problem seems to be with the automatic updating of iTunes. Apparently it can whack-out if you have any older version of Quicktime installed.
    Here's how I fixed my iTunes: I uninstalled both iTunes AND Quicktime and then restarted. I then went to www.oldversion.com and downloaded an old version of Quicktime. In my case I wasn't sure how old I should go, so I chose Quicktime 6.4. I downloaded and installed that older version, restarted, then UNINSTALLED Quicktime again. This install/uninstall helps clear out any older registry entries that might be interfering with the new installation. Once I had uninstalled the old version, I rebooted one more time and then installed iTunes, and iTunes is working again!
    So, to recap: Uninstall both iTunes and Quicktime, Restart, Install old version of Quicktime, Restart, then Uninstall Quicktime, Restart, Install iTunes.
    I hope this helps someone else, because I know how frustrating it can be not to have iTunes.
    dell dimension 4600   Windows XP  

    PhotoShop has its own forum:
    http://forums.adobe.com/community/photoshop
    Ken

  • Unable to assign the variable value

    Hi,
    I am trying to capture the error message into a variable using statement in the Refreshing tab :
    Select '<%=odiRef.getPrevStepLog("MESSAGE")%>' from dual
    After getting the error log into variable, I am making a call to Scenario which will generate a file and email it stating the error log.
    Now the issue is when i assign this variable to the Scenario variable it throws the following error:
    com.sunopsis.tools.core.exception.SnpsSimpleMessageException: Invalid parameter
         at com.sunopsis.dwg.function.SnpsFunctionBase.getSunopsisApi(SnpsFunctionBase.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execIntegratedFunction(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlS.treatTaskTrt(SnpSessTaskSqlS.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.i(e.java)
         at com.sunopsis.dwg.cmd.g.y(g.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Unknown Source)
    If i set the variable with any default value, it successfully makes a call to the scenario and generates the file.
    Please help!
    Thanks,
    Ritika

    Hi,
    i created a variable and assigned the value to another variable in a procedure, am getting the following error, as it says in the error i don't have any ";" that is causing the problem.
    the variable name is table_nm
    inside the procedure am assigning the value to lv_table_nm :=#SESSNAME.table_nm;
    If i change the variable name tos ome constant or any other value, the package is working fine. Any ideas why am getting error assigning the variable?
    6550 : 65000 : java.sql.SQLException: ORA-06550: line 1, column 294:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    ( - + case mod new not null <an identifier>
    <a double-quoted delimited-identifier> <a bind variable>
    continue avg count current exists max min prior sql stddev
    sum variance execute forall merge time timestamp interval
    date <a string literal with character set specification>
    <a number> <a single-quoted SQL string> pipe
    <an alternatively-quoted string literal with character set specification>
    <an alternatively
    java.sql.SQLException: ORA-06550: line 1, column 294:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:

  • HT4972 I have an Iphone 4 and each time I try to update to iOS 7.0.6 I receive an error message after attempting the update.  I have gone through the update process about 3 different times, and each time I get the error message after about 30 minutes.

    I have an IPhone 4 and each time I try to update to iOS 7.0.6 I receive an error message.  I have gone through te update process about 3 times and each time I get message saying there was an error and it was unable to update. 

    What is the error message, and the error number specifically? You can look it up here: http://support.apple.com/kb/TS3694

  • Receiving xml file from B2B - assign the data to a variable

    Hi,
    I am receiving an xml file from B2B and assigning the file content to a variable.
    I have a B2B adapter - mediator - bpel process. In the bpel process I am assigning the inputVariable to a userdefinedvarible.
    But I am not getting the value correctly. Only the root tag of the xml is shown as the value for the userdefinedvarible.
    In the composite audit level,
    <process>
    <scope name=main>
    receiveInputreceiveInput
    Sep 17, 2010 9:31:10 AM Received "inputVariable" call from partner "processorder_client"Received "inputVariable" call from partner "processorder_client"
    View XML Document (******* the xml doc shows the complete xml********)
    Assign_1Assign_1
    Sep 17, 2010 9:31:10 AM Updated variable "Order"Updated variable "Order"
    <payload>
    <Order>
    <orders/> (******* the variable shows only the root element********)
    </Order>
    Sep 17, 2010 9:31:10 AM Completed assignCompleted assign
    Sep 17, 2010 9:31:10 AM BPEL process instance "40004" completedBPEL process instance "40004" completed
    I have connected the mediator interface to bpel interface and did not do any other special config? Is that ok?
    Can anyone please tell me the procedure to assign the xml file content from a b2b message to a bpel variable Or direct me to any samples on this?
    I dont understand if the prob is in mediator or assigning? I do see the inputvariable having the complete xml...!!
    Thanks in advance.
    Ganesh

    Hi Ganesh,
    Might be problem with the parts.
    receiveInputreceiveInput
    Sep 17, 2010 9:31:10 AM Received "inputVariable" call from partner "processorder_client"Received "inputVariable" call from partner "processorder_client"
    View XML Document (******* the xml doc shows the complete xml********)Check the part in the xml and part you defined for inputvariable.
    Regards
    PavanKumar.M

  • I try connecting to I tunes i get an error message with the error message IxE000068 any ideas

    my ipod touch will continually be in the spinning wheel like it is shutting down mode and occasionally go to the start up screen nothing else. i tried connecting to the itunes and got an error message with the code IxE8000068 and saying itunes could not be connected to this ipod

    Did the error number really start with
    iPhone, iPad, iPod touch: Unknown error containing '0xE' when connecting

  • HT201210 my iphone is in recovery mode but wont let itunes recover it as it says it comes up with error. i have tried the power and home button for 10 seconds but it will still not do anything.. the serial number says n/a does this mean anything as well?

    do i have to buy a new iphone?

    I have the same problem but mine won't even give me the error number, and it doesn't appear as a device on iTunes

Maybe you are looking for

  • How can I move pages from one iphoto book to another?

    I'd apprecate it if anyone could tell me if it's possible to move some pages from one book I've created in iphoto to another book. I basically want to split my book in two, but I've done way too much detailed work to want to start again!

  • In windows 8 on mozilla how do i switch to desktop mode

    I am trying to switch to desktop mode in the firefox browser. How do i do that

  • Power Button issues A1226 Late 2007 Macbook Pro

    I know this sounds stupid but usually when I touch the power button a window pops up and asks me if I want to restart, shut down, or sleep. After I did the OSX update to Mavericks I have noticed when I hit the button the screen just goes black, as if

  • HDMI to HDMI Cable alternatives?

    All components run through Onkyo receiver using Component Video IN/OUT HDMI quality cables.  Samsung HD with 1080 and 5.1 surround sound.  Apple Stores does not offer, nor Fry's, compatible cable from apple tv 2nd gen to work with receiver. The entir

  • Where can i get a "booster cable"?

    Hi every body. I have my mac pro for one month now, and i've noticed that i do not use my PC anymore. So i wanted to plug my 7800GTX to use it for gaming under bootcamp and have a little more power under 3d softs... I saw that i can connect it via th