Skip to content

Commit ff20d56

Browse files
committed
catch R exceptions (dummy)
1 parent f9490b1 commit ff20d56

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/crolog.cpp

+15
Original file line numberDiff line numberDiff line change
@@ -1924,6 +1924,11 @@ PREDICATE(r_eval_, 1)
19241924
throw PlException(PlTerm_string(ex.what())) ;
19251925
return false ;
19261926
}
1927+
catch(...)
1928+
{
1929+
throw PlException(PlTerm_string("unknown exception")) ;
1930+
return false ;
1931+
}
19271932

19281933
return true ;
19291934
}
@@ -1956,6 +1961,11 @@ PREDICATE(r_eval_, 2)
19561961
throw PlException(PlTerm_string(ex.what())) ;
19571962
return false ;
19581963
}
1964+
catch(...)
1965+
{
1966+
throw PlException(PlTerm_string("unknown exception")) ;
1967+
return false ;
1968+
}
19591969

19601970
try
19611971
{
@@ -1970,6 +1980,11 @@ PREDICATE(r_eval_, 2)
19701980
throw PlException(PlTerm_string(ex.what())) ;
19711981
return false ;
19721982
}
1983+
catch(...)
1984+
{
1985+
throw PlException(PlTerm_string("unknown exception")) ;
1986+
return false ;
1987+
}
19731988

19741989
return true ;
19751990
}

0 commit comments

Comments
 (0)