[WebDNA] try/except

This WebDNA talk-list message is from

2015


It keeps the original formatting.
numero = 111854
interpreted = N
texte = Just discovered a lovely little problem involving appending records to a = database, the database having the wrong owner or permissions or whatever = (Thanks Obama Unix> and website users being oblivious = to the ugly error message webdna kicked out that displayed at the top of = the page.=20 steps to reproduce: create a database that webdna can=E2=80=99t write to because of = incorrect permissions (test.db) [append db=3D^data/test.db]field1=3Dyes&field2=3Dno[/append] will yield: Error: Permision deny. Unable to append to 'test.db' .Ignoring [Append] = context. if turns out this works: [showif [append db=3Dtest.db]field1=3Dyes&field2=3Dno[/append]~Error]a = problem was encountered[/showif] but it=E2=80=99s U.G.L.Y.=20 what would be nice: [try] [append db=3D^data/test.db]field1=3Dyes&field2=3Dno[/append] [except] [sendmail to=3Dme&from=3Dwebserver] Problems. Problems = EVERYWHERE! [/sendmail] [/except] [/try] I realize this won=E2=80=99t get used often, but there are occasionally = some database operations where failure is not an option, and an admin = needs to get alerted directly is something goes wrong.=20 -BBB= Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] try/except (Kenneth Grome 2015)
  2. Re: [WebDNA] try/except (Brian Burton 2015)
  3. Re: [WebDNA] try/except (Kenneth Grome 2015)
  4. [WebDNA] try/except (Brian Burton 2015)
Just discovered a lovely little problem involving appending records to a = database, the database having the wrong owner or permissions or whatever = (Thanks Obama Unix> and website users being oblivious = to the ugly error message webdna kicked out that displayed at the top of = the page.=20 steps to reproduce: create a database that webdna can=E2=80=99t write to because of = incorrect permissions (test.db) [append db=3D^data/test.db]field1=3Dyes&field2=3Dno[/append] will yield: Error: Permision deny. Unable to append to 'test.db' .Ignoring [append] = context. if turns out this works: [showif [append db=3Dtest.db]field1=3Dyes&field2=3Dno[/append]~Error]a = problem was encountered[/showif] but it=E2=80=99s U.G.L.Y.=20 what would be nice: [try] [append db=3D^data/test.db]field1=3Dyes&field2=3Dno[/append] [except] [sendmail to=3Dme&from=3Dwebserver] Problems. Problems = EVERYWHERE! [/sendmail] [/except] [/try] I realize this won=E2=80=99t get used often, but there are occasionally = some database operations where failure is not an option, and an admin = needs to get alerted directly is something goes wrong.=20 -BBB= Brian Burton

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

WC2b15 - [HTMLx]...[/HTMLx] problems (1997) Limits (2000) OH MY GOD! (1998) Showif, Hideif reverse logic ? (1997) Cart questions (1997) [WriteFile] problems (1997) Navigator Parsing (1997) Error: Too many nested [xxx] contexts (1997) Emailer errors (1997) Modifying order output (1997) Retrieve deleted files (2001) International Orders (1998) embedding commands in form (1999) New public beta available (1997) No luck with taxes (1997) Re:ListFields and [name] (1997) Using Applescript to process WebCatalog functions (1998) [WebDNA] Duplicate emails from list anyone? (2009) 2.0 Info (1997) [OT] WebDNA and MyODBC (2003)