// ********************************************************************** // // Copyright (c) 2003-2010 ZeroC, Inc. All rights reserved. // // This copy of Ice is licensed to you under the terms described in the // ICE_LICENSE file included in this distribution. // // ********************************************************************** // Ice version 3.4.1 package Glacier2; // <auto-generated> // // Generated from file `Session.ice' // // Warning: do not edit this file. // // </auto-generated> /** * This exception is raised if an attempt to create a new session * failed. * * @see Router#createSession * @see Router#createSessionFromSecureConnection * @see SessionManager#create * @see SSLSessionManager#create * **/ public class CannotCreateSessionException extends Ice.UserException { public CannotCreateSessionException() { } public CannotCreateSessionException(String reason) { this.reason = reason; } public String ice_name() { return "Glacier2::CannotCreateSessionException"; } /** * The reason why session creation has failed. * **/ public String reason; public void __write(IceInternal.BasicStream __os) { __os.writeString("::Glacier2::CannotCreateSessionException"); __os.startWriteSlice(); __os.writeString(reason); __os.endWriteSlice(); } public void __read(IceInternal.BasicStream __is, boolean __rid) { if(__rid) { __is.readString(); } __is.startReadSlice(); reason = __is.readString(); __is.endReadSlice(); } public void __write(Ice.OutputStream __outS) { Ice.MarshalException ex = new Ice.MarshalException(); ex.reason = "exception Glacier2::CannotCreateSessionException was not generated with stream support"; throw ex; } public void __read(Ice.InputStream __inS, boolean __rid) { Ice.MarshalException ex = new Ice.MarshalException(); ex.reason = "exception Glacier2::CannotCreateSessionException was not generated with stream support"; throw ex; } }