<?php
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//
//
// Ice version 3.7.2
//
// <auto-generated>
//
// Generated from file `AccessException.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//


namespace
{
    require_once 'GenericException.php';
}

namespace Smartswitch
{
    global $Smartswitch__t_Action;
    class Action
    {
        const Access = 0;
        const Edit = 1;
        const Add = 2;
        const Delete = 3;
    }

    $Smartswitch__t_Action = IcePHP_defineEnum('::Smartswitch::Action', array('Access', 0, 'Edit', 1, 'Add', 2, 'Delete', 3));
}

namespace Smartswitch
{
    global $Smartswitch__t_AccessException;
    class AccessException extends \Smartswitch\GenericException
    {
        public function __construct($description='', $solution='', $action=\Smartswitch\Action::Access, $category='')
        {
            parent::__construct($description, $solution);
            $this->action = $action;
            $this->category = $category;
        }

        public function ice_id()
        {
            return '::Smartswitch::AccessException';
        }

        public function __toString()
        {
            global $Smartswitch__t_AccessException;
            return IcePHP_stringifyException($this, $Smartswitch__t_AccessException);
        }

        public $action;
        public $category;
    }
    global $Smartswitch__t_Action;
    global $IcePHP__t_string;

    $Smartswitch__t_AccessException = IcePHP_defineException('::Smartswitch::AccessException', '\\Smartswitch\\AccessException', false, $Smartswitch__t_GenericException, array(
        array('action', $Smartswitch__t_Action, false, 0),
        array('category', $IcePHP__t_string, false, 0)));
}
?>
