Workflow failure

Are there any settings that can ensure a workflow does not fail in javaSDK, regardless of any type of exceptions that may occur?

Put try-catch in the workflow methods and do not rethrow any exceptions.