* Writes out pre-calculated header values which assume any variable length property `data`
* field to already have Size and Reserved
* @param out output stream (calling code must close this stream)
- * @throws IOException
+ * @throws IOException If writing to the stream fails
*/
public void writePreCalculatedValue(OutputStream out) throws IOException {
// 8 bytes of reserved zeros
* </p>
*
* @param throwable to check
+ * @throws Error the input throwable if it is an <code>Error</code>.
+ * @throws RuntimeException the input throwable if it is an <code>RuntimeException</code>
+ * Otherwise wraps the throwable in a RuntimeException.
*/
- public static void rethrow(Throwable throwable) {
+ public static void rethrow(Throwable throwable) throws Error, RuntimeException {
if (throwable instanceof Error) {
throw (Error) throwable;
}