mobile/android/base/sync/synchronizer/UnexpectedSessionException.java

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/mobile/android/base/sync/synchronizer/UnexpectedSessionException.java	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,26 @@
     1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.7 +
     1.8 +package org.mozilla.gecko.sync.synchronizer;
     1.9 +
    1.10 +import org.mozilla.gecko.sync.SyncException;
    1.11 +import org.mozilla.gecko.sync.repositories.RepositorySession;
    1.12 +
    1.13 +/**
    1.14 + * An exception class that indicates that a session was passed
    1.15 + * to a begin callback and wasn't expected.
    1.16 + *
    1.17 + * This shouldn't occur.
    1.18 + *
    1.19 + * @author rnewman
    1.20 + *
    1.21 + */
    1.22 +public class UnexpectedSessionException extends SyncException {
    1.23 +  private static final long serialVersionUID = 949010933527484721L;
    1.24 +  public RepositorySession session;
    1.25 +
    1.26 +  public UnexpectedSessionException(RepositorySession session) {
    1.27 +    this.session = session;
    1.28 +  }
    1.29 +}

mercurial