diff options
author | Ocke Janssen <oj@openoffice.org> | 2001-05-25 06:15:00 +0000 |
---|---|---|
committer | Ocke Janssen <oj@openoffice.org> | 2001-05-25 06:15:00 +0000 |
commit | c8a9c25e70a36a3a398af7fc03fe7854198183b6 (patch) | |
tree | 7edf592bc514c3154c827db6da9e4858dfd90f5d /connectivity/source/drivers/file/FConnection.cxx | |
parent | 19381158e38563b9ee7d8043ccb0615c3aa77235 (diff) |
#87444# check if dir exists
Diffstat (limited to 'connectivity/source/drivers/file/FConnection.cxx')
-rw-r--r-- | connectivity/source/drivers/file/FConnection.cxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/connectivity/source/drivers/file/FConnection.cxx b/connectivity/source/drivers/file/FConnection.cxx index 95c0a2393d85..10782c3a3d9e 100644 --- a/connectivity/source/drivers/file/FConnection.cxx +++ b/connectivity/source/drivers/file/FConnection.cxx @@ -2,9 +2,9 @@ * * $RCSfile: FConnection.cxx,v $ * - * $Revision: 1.26 $ + * $Revision: 1.27 $ * - * last change: $Author: oj $ $Date: 2001-05-17 06:46:53 $ + * last change: $Author: oj $ $Date: 2001-05-25 07:15:00 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -280,6 +280,12 @@ void OConnection::construct(const ::rtl::OUString& url,const Sequence< PropertyV aError.NextException <<= SQLException(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("UCB message: ")) += e.Message, aError.Context, ::rtl::OUString(), 0, Any()); throw aError; } + if(!m_xDir.is() || !m_xContent.is()) + throw SQLException(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Unable to create a content for the URL given.")), + *this, + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("S1000")), + 0, + Any()); if (m_aFilenameExtension.Search('*') != STRING_NOTFOUND || m_aFilenameExtension.Search('?') != STRING_NOTFOUND) throw SQLException(); |