Package com.asakusafw.windgate.core.session

Examples of com.asakusafw.windgate.core.session.SessionException


            State state = getSessionState(id, path, file);
            switch (state) {
            case INIT:
                if (create == false) {
                    delete = true;
                    throw new SessionException(id, Reason.NOT_EXIST);
                } else {
                    createSession(path, file);
                }
                break;
            case CREATED:
                if (create) {
                    throw new SessionException(id, Reason.ALREADY_EXIST);
                }
                break;
            case INVALID:
                if (force == false) {
                    WGLOG.error("W01001",
                            id,
                            path);
                    throw new SessionException(id, Reason.BROKEN);
                }
                break;
            default:
                throw new AssertionError(MessageFormat.format(
                        "Invalid state: {2} (id={0}, path={1})",
View Full Code Here


            // fall through
            LOG.debug(MessageFormat.format(
                    "Failed to acquire lock: {0}",
                    id), e);
        }
        throw new SessionException(id, Reason.ACQUIRED);
    }
View Full Code Here

TOP

Related Classes of com.asakusafw.windgate.core.session.SessionException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.