given any function like e.g:
CREATE FUNCTION ds.fn(param ANY TYPE) RETURNS STRING AS (
(SELECT 1/0)
);
Is there a way for handling errors when the statement fails and return a default value?
Note: My question is about any error that a select statement can throw and not only the arithmetic in the example above.