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

  • Thread starter Thread starter Peter Judge
  • Start date Start date
Status
Not open for further replies.
P

Peter Judge

Guest
If your serialzable class contains other types, they must * all * be serializable otherwise you'll get a runtime error. This becaomes tricky when you have something like Class MyError inherits AppError serializable: Def public property ErrorContext as Progress.Lang.Object get. set. End class. Because you can assign any object (of any type) to that property, you can very easily assign an unserialzable one. For ABL built-in serialization, you don't have control of the actual serialization operation (turning the object into bytes/json) which makes working around this hard.

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