Determining the type of sqlexception

Is is possible to know the type of sql excpetion that occured? For instance if an sqlexception occured I need to know if the error is due to a non-existent table field or a non existent table.
Basically I need to give the user a more specific desctiption of the error that occured. I can't just say "database error".
thanks

put it on a string like
String ret="";
try{
}catch(SQLException sqle){
ret = sqle.getMessage();
return ret;

Similar Messages

  • How can I determine the type of video out connector I need?

    Howdy,
    I have a white macbook purchased Jun/2008. I want to connect to a TV but don't know what adapter I need. How can I determine the type of video out jack my macbook has?
    System Profiler says the model identifier is "MacBook 4,1". Under Graphics/Displays the only thing it says about the "Display Connector" is that no display is connected. Too bad it doesn't tell me what type of connector it is. If I knew the name of the connector I'd probably be home free. But it seems like every macbook model has a different video connector (since the state of the art has advanced over the years) and I haven't been able to keep up with the names.
    Now, I have a 6" long adapter that will convert this connector to VGA. And searching the Apple store for VGA adapters, the existence of mine says my connector is might be one of "Mini DisplayPort", "Apple Mini DVI", "Apple DVI", or "Apple Micro-DVI". But then there is also the connector at
    http://store.apple.com/us/product/M8639G/A?mco=MTY3ODQ5OTY
    and that looks like the one I have. But unlike the other adapters, this one is just called a "VGA Display Adapter". Does the connector have a name? How can I find adapters that have that same connector?
    I know I could use the adapter I have, plus a VGA to VGA cable, to hook up to a TV. But the quality of the VGA signal is poor in the digital world. My goal is to hook up to the TV via HDMI. Is this even possible? By which I mean, will my macbook generate the signals necessary to be able to be converted to HDMI?
    Thanks for any help,
    Zebulon T

    Thanks, Ded,
    You're right, the cable that I have won't work. I't from my previous, 2004 iBook. This is pretty embarrassing... I looked at the cable but didn't bother to try plugging it in.
    Looking at the close-up picture of the Mini-DVI to VGA adapter, that does look like the right connector. So I have Mini-DVI, and the other apter you pointed to can convert this to DVI. I'll take a look to see what makes the most sense, connector wise, downstream from that.
    Thanks very much.
    Zeb T

  • How to determine the type of an existing iView

    Hi,
    While creating an iView using wizard there is a big list of type of iViews. But after creation of iView, how do I determine the type of iView. Which attribute or property of iView holds this information?
    -Lave Kulshreshtha

    You can copy and paste the existing Iview changing the name and ID if u want to replicate the same.
    Also, when you create a new iView from a template, you get a list of them e.g SAP BSP iView etc.
    Now what you see in the code link is much similar to what you see as a list of templates when u create iViews. So its pretty simple.
    I hope this helped you.

  • Determining the "type" of a SQL statement

    I'm using the Oracle thin driver with my JDBC program.
    I want to be able to accept a String containing a SQL statement from the user and execute it. If it's a select statement then present the rows returned in a JTable, otherwise retrieve the return value for the command (eg INSERT, DELETE, etc).
    Is there any "readymade" method in JDBC or Oracle driver to determine the type of a SQL statement in this sense. Or do I have to parse it myself? (Imagine having to write code to strip comments out etc!)

    There is no "readymade" method. But an easy way to check will be to check the first 6 charchters of the string.
    You could use
    newString = SQL.substring(0, 5); to obtain the first 6 characters.
    if the characters are "select"
    //do select things
    else
    // do insert/delete whatever things

  • Determining the type of a field-symbol

    Hi!
    I want to create a logical expression that determines the type of field-symbol that was passed in to a function.
    i want to do something like this:
    IF imported_fieldsymbol IS OF TYPE some_type
    ENDIF
    how do you create such an expression in ABAP?
    regards

    Hi,
      You can use the RTTS - Run Time Type Service.
      Try the sample code
    TYPES my_type TYPE i.
    DATA: my_data   TYPE my_type,
          descr_ref TYPE ref to cl_abap_typedescr.
    START-OF-SELECTION.
      descr_ref = cl_abap_typedescr=>describe_by_data( my_data ).
    The hierarchy of RTTS classes are as follows,
    CL_ABAP_TYPEDESCR
      |
      |--CL_ABAP_DATADESCR
      |   |
      |   |-- CL_ABAP_ELEMDESCR
      |   |--CL_ABAP_REFDESCR
      |   |--CL_ABAP_COMPLEXDESCR
      |       |
      |       |--CL_ABAP_STRUCTDESCR
      |       |--CL_ABAP_TABLEDESCR
      |
      |--CL_ABAP_OBJECTDESCR
         |
         |--CL_ABAP_CLASSDESCR
         |--CL_ABAP_INTFDESCR
    Regards,
    Mustajab

  • Determine the type of the caught exception

    Hi!
    Here is my problem :
    I'm using a web service and the method I call throws different types of Exception (RemoteException, ServiceException, etc...)
    And, the reaction to the caught exception depends on its type, that's why I need to determine what type of exception i've caught. I know that with C# I use the boolean function is :
    if (exception is TypeOfException1)
        // associated reaction
    else if(exception is TypeOfException2)
       // associated reaction
    }Is there any method or any other way in Java to do that?
    Thanks a lot,
    Gan�che.

    >
    Here is my problem :
    I'm using a web service and the method I call throws different types of Exception (RemoteException, ServiceException, etc...)
    And, the reaction to the caught exception depends on its type, that's why I need to determine what type of exception i've caught. >
    try {
      // stuff that may cause exceptions..
    } catch(RemoteException re) {
      // deal with this re
    } catch(ServiceException se) {
      // deal with this se
    } catch (Throwable didNotExpectThis) {
      // exceptional!
      didNotExpectThis.printStackTrace();
    }

  • How to determine the type of the jobject... similar to instanceof

    hi,
    I would like to know how to determine the jobject reference of an instance is of which class.
    this is something similar to instanceof we use in java.
    is there any thing like 'instanceof' in JNI. if there how to use it?
    i got this as objective question for which answers were(i do not remember exactly)
    1.instanceof
    2.assignedto
    i could nt het much help in googling.
    thanks in advance

    Hi
    The JNI provides a native version to the java instanceof operator, this function takes two arguments
    an object refrence and a class refrence and reports JNI_TRUE.
    jclass myclass = env->FindClass("your class name");
    if(env->IsInstanceOf(obj,myclass) == JNI_TRUE)
    // obj is of type myclass
    }Regards
    pradish

  • How to determine the types of interactive form fields

    Hello:
    I have written a utility that traverses through the objects in a PDF file, and finds the ones of Type "Annot", Subtype "Widget". I need to go one step down the hierarchy and determine which kind of widget (text, radio button, check mark, press button) is the one under scrutiny.
    I have looked at the innards of PDF files, and found that the widgets of type "text" are internally identified by the FT=Tx dictionary entry. So far, so good.
    Here is where the beauty and consistency stops. It turns out that all the other (non-text) types are ambiguously identified by FT=Btn dictionary entry.
    So: Every field which is not text, is a button.
    Where should I look?
    TIA,
    -RFH

    Digging a little deeper, I found that the 4 types of fields (as generated by default) have different keys, as follows:
    Text: [F, FT, MK, P, Rect, Subtype, T, Type]
    Check Box: [AP, AS, F, FT, MK, P, Rect, Subtype, T, Type]
    Radio Button: [AP, AS, BS, F, FT, Ff, MK, P, Rect, Subtype, T, Type]
    Button: [AP, DA, F, FT, Ff, MK, P, Rect, Subtype, T, Type]
    Is that the correct approach to determine the kind of fields, by querying for the keys, which somehow instantiate a fingerprint?
    TIA,
    -RFH

  • Determine the type of video card

    Hi
    How to determine what type of video card I have with command line utilities(not scanpci)?
    SuperProbe, lshw no works on Solaris 10.
    Thanks

    You can try prtconf(1M) . But this will only provide the PCI IDs.

  • Determine the type of connection & set webcam width/height

    Hi, two quick questions:
    1. Is there a way in ActionScript to determine what type of connection is being used (e.g. P2P or FMS)?
    2. Is there a way to set the width/height of the webcam picture? I currently extend the WebcamPublisher class to access the _camera instance and use the Camera.setMode() method, but it looks like that doesn't have any effect whatsoever.
    Thanks in advance,
    Michiel
    PS: I'm aware of the captureWidthHeightFactor method, but I really don't like that approach, as it's not really clear what dimensions are being used for the video. I would like to set the dimensions myself, like when using the Camera.setMode() method.

    Hironmay wrote:
    For you height/width part, you can use resolutionFactor API in webcamPublisher as captureWidthHeight API is deprecated. The default width and height gets multiplied.
    Ok, I'm using resolutionFactor now, but I'm not sure what the difference is. captureWidthHeightFactor is not really documented (it's there, but pretty unexplained), but the resolutionFactor uses multiples of the default width/height. I assume it does the exact same thing? (By the way: the resolutionFactor is not documenten on livedocs, only in the local documentation received as part of the zipped SDK.)
    And still if you want to set your own native width/height , since you are already subclassing WebcamPublisher, just subclass the function createMyStream and add your native width and height. See that function in the player 9 source code of WebcamPublisher provided.
    I'll look into that, for now resolutionFactor will have to do. (For testing purposes all video parameters have to be adjustable on the fly, and I unfortunately am already very short on time.)
    One thing I forgot to mention in last mail, you can only have P2P with player 10 and you need to use player 10 swc for any verification of P2P. Player 9 will be always FMS.
    You may have just saved my life! I was indeed using the player 9 swc, and tried the isP2P property, but didn't get it to work. And since it's not documented I labeled this as "deprecated" and dropped it. Great to see that it really is in there.
    Also, the difference between the player 9 and player 10 swc you just explained answers another question I had (but totally forgot about). When connecting, the console always showed:
    #FMSConnector# Wed Jan 6 10:52:11 GMT+0100 2010 is using RTMPS? true
    This gave me the idea that the P2P service was unavailable. I'm glad to see that this isn't the case.
    Thanks for your rapid replies everyone, I really appreciate it!
    Michiel

  • Determine the type of browser

    Hello all,
    I am not sure if I am posting this question in the right forum,
    anyway I am working on a JSF project. I have some tags in my jsp pages
    for e.g.
                   <h:inputText size="20" value="#{authentication.userName}" />
                   <h:inputSecret size="20" value="#{authentication.password}" />
    the problem is - the two JSF components above are displayed differently in deifferent browsers. In firefox and IE7, they are displayed without any problem,
    however in IE6 the inputSecret looks smaller in size than inputText.
    So how do I need some way to identify the kind of browser and its version details and based on which i will make the appropriate changes in my css file.
    is there some simple method to find the browser type in jsp?

    is there some simple method to find the browser type in jsp?The only thing you can do is to parse/guess the User-Agent header field sent by the browser (use request.getHeader("User-Agent") to access this value).

  • Determining the type of Powerbook G3

    Hi,
    My son has a 2000 Powerbook G3, 400 MHz (family M7572) with brown see-through keys. How does one determine its model name? I once heard "Wallstreet" applied to it, does "bronze" describe the keyboard. I also see "Pizmo" and "Lombard" and have no idea how these three are distinguished from each other. Does anyone know the differences? I would love to know as I would like to find a replacement keyboard and want to find the correct one for my son.
    Thanks, swic17

    swic,
    You have the Powerbook (FireWire) M7572 a.k.a. "Pismo" or "FireWire" or "2000". The Pismo unofficial code-name is by far the most commonly used.
    The "Lombard" is the Powerbook G3 Series Bronze Keyboard M5343 released in 1999.
    The "Wallstreet" is the Powerbook G3 Series M4753 released in 1998.

  • Determine The Type of HD

    Hello,,
    I want to upgrade my HD to an SSD one. but my problem is i can not figure out what is the best SSD compatble to my PC.
    Below is the SSD info LInk + Info about my PC
    Note that the ssd is SATA 3 .. Is My PC SATA 3 or 2 ??
    SSD Info
    My PC Info
    Please Help me to choose.
    This question was solved.
    View Solution.

    Hi,
    SATA 3 is backward compatible, it can run at lower speed under SATA 2 and you have to pay a little bit more. You can check your machine yourself using the following program:
       http://www.cpuid.com/downloads/pc-wizard/2012.2.0-setup.exe
    Please refer to my reply on the following link:
       http://h30434.www3.hp.com/t5/Notebook-Hardware/pavilion-g6-sata-6-Gbits-s/m-p/1576129#M73605
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • How to determine employee type (management vs nonmanagement) in WebDynpro

    Hi,
    I am running SP14.
    In my WebDynpro application, I need to hide/show a link based on if the employee is management or nonmanagement.
    What is the easiest way to determine the type of employee in a WebDynpro?  Is the management/non-management attribute already exposed and available to the WebDynpro?  Or do I need to invoke a BAPI/RFC to retrieve that information from SAP (eg Employee Group or Personnel Area)?
    Thanks for any help you can provide.
    Kevin

    You only need to call this RFC once and share the results with other views via context binding!
    In my applications I follow the Floorplan manager architecture and have one web dynpro component for all the frontend logic e.g. FcAddress
    In the component controller of FcAddress I setup model nodes for the RFC e.g.
    Address_Input (mapped to input RFC model class with all the import parameters of the RFC)
    Address_Output (mapped to either the output RFC model class with all the export parameters of the RFC or it includes another model node for Address_Records which is mapped to the export table parameter.)
    Address_Messages (mapped to the return parameter of the RFC (BAPIRET2).
    All other views with their component controllers are mapped to those model nodes to allow access to the RFC data.
    You can pass the userid to the RFC and then the RFC will get the related employee number via IT105/ST10. You just need to have the userid defined as an import parameter in the RFC.

  • How to get the type of answer in a workitem?

    Hi Experts,
    I am building a report to get the users responsible for the approval of SCs and POs, in this report I need to get the type of answer given by the approver, if they have rejected, approved or partial rejected / approved the object.
    When I look at the container of the workitem I can get the agent responsible for the action and the dates, but I need your help to determine the type of answer. I believe I can get this information from the approval state, no? But I am getting a lot of different approval states: 0, 1, 3, 4, 10, 11 and 15. Can you provide me some guidance? I am new to workflows and I am stuck in this point.
    I am using SRM 5.0 and n-step approval workflow.
    Thanks in advance,
    Francisco

    I'm not an SRM expert, but from a pure workflow point you can read the output of a workitem. So, check how your workflow is built and then see what values are returned in the corresponding return fields. Explore the workitem structure in the log.

Maybe you are looking for

  • Disk Partitioning / Logical Drives vs. One Key Recovery Functionality

    I just purchased a Windows 7 Lenovo H530 and need to know if I can shrink the C: drive and add an extended partition with logical volumes without disabling OKR / Rescue System 3.0 functionality. My 1 TB HDD: 200 MB     SYSTEM_DRV (Primary Partition)

  • Are they the same?

    i need to connect to a remote server, i know its ip as: jint29-14.hast.com.au is the ip address similar to a number (i.e. 3333.333.333.33), so i can use it directly for connection? thx

  • Swaps are marked red in ST02

    Swaps are banded red in ST02 how to come out of it. It is showing as below: program                93,28   240.000      1.253       0,54    60.000     54.069      90,12 79.874  258.846 CUA                    98,93    12.000      1.466      14,62    

  • Regarding activating my ipad2 after updating ios8

    i have update ios 8 in my ipad2 and i am unable to activate the ipa,i have tried a couple of times to activate it through itunes but it is showing me that the activation server is unavailabe to activate the ipad please help me out from the issues....

  • Elements 7 upgrade to Elements 11

    I need to upgrade from Elements 7 to Elements 11 but I need to install the upgrade on a different computer than the Elements 7 is on. How can I do this?