[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: Looking for sample code for throwing error from the AppServer

  • Thread starter Thread starter Laura Stern
  • Start date Start date
Status
Not open for further replies.
L

Laura Stern

Guest
Be careful. If you try to throw it back to the client using...: UNDO, THROW NEW yourpackage.YourError (). ...then you need to have BLOCK-LEVEL UNDO, THROW at the top of your .p or .cls file. Otherwise the error will just get raised within its current block context. Or you can do the following from the top-level AppServer procedure: RETURN ERROR NEW yourpackage.YourError ().

Continue reading...
 
Status
Not open for further replies.
Back
Top