import com.microfocus.cobol.program.COBOLException; ... try { ... execute COBOL code } catch (Throwable e) { throw new COBOLException(e); }