Skip to main content

try/catch - not catched

  • January 31, 2025
  • 0 replies
  • 0 views

Manu Fernandes
Forum|alt.badge.img+2

hi,

when I try this :

var = ''
try
    var->$objecttype() 
catch e
   print 'error ':e->$tojson() 
endtry 
print 'finished'

the error is not cached, the program terminate with echo bad self type: 2 and @SYSTEM.RETURN.CODE = -1 

Same behavior with the $fromjson(), $tojson() ... 

any idea ?



------------------------------
Manu Fernandes
------------------------------

0 replies

Be the first to reply!