Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How to handle multiple exceptions(Try..Catch)

How to handle multiple exceptions(Try..Catch)

Scheduled Pinned Locked Moved C#
sysadmindebuggingxmljsonhelp
26 Posts 3 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Bootzilla33

    I have the same thing for prc.Consignee. So what would you suggest something like this:

    ),
    new XElement("PickupStoreInfo",
    new XElement("PickupDueDateDetails",
    new XElement("Date"),
    new XElement("UTCOffset")
    ),

    I pretty much have to pass a value in the node or else how else would I get the values?

    Richard DeemingR Offline
    Richard DeemingR Offline
    Richard Deeming
    wrote on last edited by
    #21

    If you have to pass a value, then pass the value that the API is expecting. Passing the same (invalid) string for each node will most likely cause the API to return an error.


    "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

    "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

    B 1 Reply Last reply
    0
    • Richard DeemingR Richard Deeming

      If you have to pass a value, then pass the value that the API is expecting. Passing the same (invalid) string for each node will most likely cause the API to return an error.


      "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

      B Offline
      B Offline
      Bootzilla33
      wrote on last edited by
      #22

      Richard Deeming wrote:

      If you have to pass a value, then pass the value that the API is expecting.

      What would that be? Something like:

      new XElement("PickupStoreInfo",
      new XElement("PickupDueDateDetails",
      new XElement("Date", Date),
      new XElement("UTCOffset", UTCOffset)
      ),

      Not sure???

      Richard DeemingR 1 Reply Last reply
      0
      • B Bootzilla33

        Richard Deeming wrote:

        If you have to pass a value, then pass the value that the API is expecting.

        What would that be? Something like:

        new XElement("PickupStoreInfo",
        new XElement("PickupDueDateDetails",
        new XElement("Date", Date),
        new XElement("UTCOffset", UTCOffset)
        ),

        Not sure???

        Richard DeemingR Offline
        Richard DeemingR Offline
        Richard Deeming
        wrote on last edited by
        #23

        Pass in the values that the API is expecting you to pass in for the request. You've presumably read the API documentation? The expected values should be documented there.


        "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

        "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

        B 1 Reply Last reply
        0
        • Richard DeemingR Richard Deeming

          Pass in the values that the API is expecting you to pass in for the request. You've presumably read the API documentation? The expected values should be documented there.


          "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

          B Offline
          B Offline
          Bootzilla33
          wrote on last edited by
          #24

          Yes i've read it and if that is the case then the values in the API are the same as the XElement so Here the a piece of the API schema:

          Event Status

          I guess it will look like this?

                  new XElement("EventStatus", "Event Status"),
                  
              ),
          
          B 1 Reply Last reply
          0
          • B Bootzilla33

            Yes i've read it and if that is the case then the values in the API are the same as the XElement so Here the a piece of the API schema:

            Event Status

            I guess it will look like this?

                    new XElement("EventStatus", "Event Status"),
                    
                ),
            
            B Offline
            B Offline
            Bootzilla33
            wrote on last edited by
            #25

            Bootzilla33 wrote:

            Here the a piece of the API schema:

            <xsd:element
            name="EventStatus" type="xsd:string">
            xsd:annotation\
            xsd:documentation\Event Status</xsd:documentation>
            </xsd:annotation>
            </xsd:element>

            I guess it will look like this?

            new XElement("EventStatus", "Event Status"),
            

            ),

            Just need help with this and I think I'm done.

            B 1 Reply Last reply
            0
            • B Bootzilla33

              Bootzilla33 wrote:

              Here the a piece of the API schema:

              <xsd:element
              name="EventStatus" type="xsd:string">
              xsd:annotation\
              xsd:documentation\Event Status</xsd:documentation>
              </xsd:annotation>
              </xsd:element>

              I guess it will look like this?

              new XElement("EventStatus", "Event Status"),
              

              ),

              Just need help with this and I think I'm done.

              B Offline
              B Offline
              Bootzilla33
              wrote on last edited by
              #26

              Someone please help me with this. I would greatly appreciate it. Thanks

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups