Glacier2.PermissionDeniedException Maven / Gradle / Ivy
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//
//
// Ice version 3.7.3
//
//
//
// Generated from file `PermissionsVerifier.ice'
//
// Warning: do not edit this file.
//
//
//
package Glacier2;
/**
* This exception is raised if a client is denied the ability to create
* a session with the router.
*
**/
public class PermissionDeniedException extends Ice.UserException
{
public PermissionDeniedException()
{
this.reason = "";
}
public PermissionDeniedException(Throwable cause)
{
super(cause);
this.reason = "";
}
public PermissionDeniedException(String reason)
{
this.reason = reason;
}
public PermissionDeniedException(String reason, Throwable cause)
{
super(cause);
this.reason = reason;
}
public String
ice_id()
{
return "::Glacier2::PermissionDeniedException";
}
/**
* The reason why permission was denied.
*
**/
public String reason;
public Ice.SlicedData
ice_getSlicedData()
{
return _slicedData;
}
public void
_write(Ice.OutputStream ostr)
{
ostr.startException(_slicedData);
_writeImpl(ostr);
ostr.endException();
}
public void
_read(Ice.InputStream istr)
{
istr.startException();
_readImpl(istr);
_slicedData = istr.endException(true);
}
protected void
_writeImpl(Ice.OutputStream ostr_)
{
ostr_.startSlice("::Glacier2::PermissionDeniedException", -1, true);
ostr_.writeString(reason);
ostr_.endSlice();
}
protected void
_readImpl(Ice.InputStream istr_)
{
istr_.startSlice();
reason = istr_.readString();
istr_.endSlice();
}
protected Ice.SlicedData _slicedData;
public static final long serialVersionUID = -7498388675060710218L;
}