/*
 * RADOS Java - Java bindings for librados
 *
 * Copyright (C) 2013 Wido den Hollander <wido@42on.com>
 *
 * This is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License version 2.1, as published by the Free Software
 * Foundation.  See file LICENSE.
 *
 */

package com.ceph;

public class RadosException extends Exception {

    protected int returnValue;

    public RadosException(String message) {
        super(message);
    }

    public RadosException(String message, int returnValue) {
        super(message);
        this.returnValue = returnValue;
    }

    public int getReturnValue() {
        return this.returnValue;
    }

}

@@ -429,78 +429,375 @@
     
-public RadosException(String message) %7B%0A        super(message);%0A    %7D%0A
+/**%0A     * Throw a a RadosException%0A     *%0A     * @param message%0A     *         The error message%0A     */%0A    public RadosException(String message) %7B%0A        super(message);%0A    %7D%0A%0A    /**%0A     * Throw a a RadosException%0A     *%0A     * @param message%0A     *         The error message%0A     * @param returnValue%0A     *         The return value of the rados_ call%0A     */
 %0A   
@@ -921,24 +921,123 @@
 lue;%0A    %7D%0A%0A
+    /**%0A     * Get the return value passed on to the constructor%0A     *%0A     * @return int%0A     */%0A
     public i

Add docs to the RadosException