Navigation

Operators and Keywords

Function List:

C++ API

test_try.m File Reference


Functions

"Shoudn't get here" error ()
id a ()
 !assert (a, 1)
id x ()
 !assert (!exist('x'))%!assert(a
!end_try_catch !assert (exist('x'))%%test/octave.test/try/try-5.m%!test%!%!clear a
 !error ("Shoudn't get here")
"<", s,">" cstrcat ()
!catch !assert (strcmp(mangle(lasterr)(1:14),"<`a' undefined"))%!end_try_catch%%test/octave.test/try/try-8.m%!test%!%!%!clear a%!a
!catch !assert (strcmp(lasterr()(1:13),"`a' undefined"))%!end_try_catch%!clear b%!b
!catch !assert (strcmp(lasterr()(1:13),"`b' undefined"))%!end_try_catch%%test/octave.test/try/try-9.m%!test%!%!clear a%!a
!catch !error (cstrcat("rethrow: ", lasterr))

Variables

!catch!end_try_catch !a = 1
 !x = 1

Function Documentation

! catch !assert ( strcmp(lasterr()(1:13),"`b' undefined")   ) 

! catch !assert ( strcmp(lasterr()(1:13),"`a' undefined")   ) 

! catch !assert ( strcmp(mangle(lasterr)(1:14),"<`a' undefined")   ) 

! end_try_catch !assert ( exist('x')   ) 

!assert ( exist'x'  ) 

!assert ( ,
 
)

! catch !error ( cstrcat("rethrow: ", lasterr)   ) 

!error ( "Shoudn't get here"   ) 

id a (  )  [virtual]

"<", s, ">" cstrcat (  )  [virtual]

"Shoudn't get here" error (  )  [virtual]

id x (  )  [virtual]


Variable Documentation

!test ! try ! clear a !a = 1

! catch !x = 1