// **********************************************************************
//
// 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 `Router.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
/**
* This exception is raised if a client is denied the ability to create
* a session with the router.
*
* @see Router#createSession
* @see Router#createSessionFromSecureConnection
*
**/
public class PermissionDeniedException extends Ice.UserException
{
public PermissionDeniedException()
{
}
public PermissionDeniedException(String reason)
{
this.reason = reason;
}
public String
ice_name()
{
return "Glacier2::PermissionDeniedException";
}
/**
* The reason why permission was denied.
*
**/
public String reason;
public void
__write(IceInternal.BasicStream __os)
{
__os.writeString("::Glacier2::PermissionDeniedException");
__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::PermissionDeniedException 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::PermissionDeniedException was not generated with stream support";
throw ex;
}
}