OPENJPA-344. Build is failing because of this change; changing to use initCause() on the hypothesis that the 1.4 phase of the build does not support a Throwable argument to the constructor.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@571042 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Patrick Linskey 2007-08-30 05:09:56 +00:00
parent e89b51c4c6
commit 849e10a391
1 changed files with 4 additions and 3 deletions

View File

@ -228,10 +228,11 @@ public class CacheMarshallerImpl
getId(), _inputResourceLocation).getMessage());
}
} catch (IOException ioe) {
throw new IllegalStateException(
IllegalStateException ise = new IllegalStateException(
_loc.get("cache-marshaller-bad-url", getId(),
_inputResourceLocation)
.getMessage(), ioe);
_inputResourceLocation).getMessage());
ise.initCause(ioe);
throw ise;
}
}
}