/*
 * Copyright 2016 requery.io
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package io.requery.sql;

import io.requery.PersistenceException;

class RowCountException extends PersistenceException {

    RowCountException(long expected, long actual) {
        super("Expected " + expected + " row affected actual " + actual);
    }
}

@@ -658,188 +658,695 @@
 n;%0A%0A
-class RowCountException extends PersistenceException %7B%0A%0A    RowCountException(long expected, long actual) %7B%0A        super(%22Expected %22 + expected + %22 row affected actual %22 + actual)
+/**%0A * Exception thrown when the affected row count of a executed statement doesn't match the value%0A * expected.%0A */%0Apublic class RowCountException extends PersistenceException %7B%0A%0A    private final long expected;%0A    private final long actual;%0A%0A    RowCountException(long expected, long actual) %7B%0A        super(%22Expected %22 + expected + %22 row affected actual %22 + actual);%0A        this.expected = expected;%0A        this.actual = expected;%0A    %7D%0A%0A    /**%0A     * @return the expected affected value count%0A     */%0A    public long getExpected() %7B%0A        return expected;%0A    %7D%0A%0A    /**%0A     * @return the actual affected value count%0A     */%0A    public long getActual() %7B%0A        return actual
 ;%0A  

Resolve #157 Make RowCountException and values public