/usr/share/pyshared/starpy/error.py is in python-starpy 1.0.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | #
# StarPy -- Asterisk Protocols for Twisted
#
# Copyright (c) 2006, Michael C. Fletcher
#
# Michael C. Fletcher <mcfletch@vrplumber.com>
#
# See http://asterisk-org.github.com/starpy/ for more information about the
# StarPy project. Please do not directly contact any of the maintainers of this
# project for assistance; the project provides a web site, mailing lists and
# IRC channels for your use.
#
# This program is free software, distributed under the terms of the
# BSD 3-Clause License. See the LICENSE file at the top of the source tree for
# details.
"""Collection of StarPy-specific error classes"""
class AMICommandFailure(Exception):
"""AMI Command failure of some description"""
class AGICommandFailure(Exception):
"""AGI Command failure of some description"""
class MenuFinished(Exception):
"""Base class for reporting non-standard menu exits (i.e. not a choice)"""
class MenuExit(MenuFinished):
"""User exited from the menu voluntarily"""
class MenuTimeout(MenuFinished):
"""User didn't complete selection from menu in reasonable time period"""
class MenuUnexpectedOption(MenuFinished):
"""Somehow the user managed to select an option that doesn't exist?"""
|