/usr/lib/python2.7/dist-packages/framework/subsystems/ogsmd/error.py is in fso-frameworkd 0.10.1-3.
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 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 | #!/usr/bin/env python
"""
The Open GSM Daemon - Python Implementation
(C) 2008 Michael 'Mickey' Lauer <mlauer@vanille-media.de>
(C) 2008 Openmoko, Inc.
GPLv2 or later
Module: error
DBus Exception Classes for org.freesmartphone.GSM*
"""
from dbus import DBusException
#=========================================================================#
# GSM exceptions, unspecific to actual interface
#=========================================================================#
class UnsupportedCommand( DBusException ):
_dbus_error_name = "org.freesmartphone.GSM.UnsupportedCommand"
class InvalidParameter( DBusException ):
_dbus_error_name = "org.freesmartphone.GSM.InvalidParameter"
class InternalException( DBusException ):
_dbus_error_name = "org.freesmartphone.GSM.InternalError"
class NoCommandToCancelException( DBusException ):
_dbus_error_name = "org.freesmartphone.GSM.NoCommandToCancel"
class CommandCancelled( DBusException ):
_dbus_error_name = "org.freesmartphone.GSM.CommandCancelled"
#=========================================================================#
# Base classes for interface-specific exceptions
#=========================================================================#
class AbstractDeviceException( DBusException ):
_dbus_error_name = "org.freesmartphone.GSM.Device"
class AbstractSimException( DBusException ):
_dbus_error_name = "org.freesmartphone.GSM.SIM"
class AbstractNetworkException( DBusException ):
_dbus_error_name = "org.freesmartphone.GSM.Network"
class AbstractCallException( DBusException ):
_dbus_error_name = "org.freesmartphone.GSM.Call"
class AbstractPdpException( DBusException ):
_dbus_error_name = "org.freesmartphone.GSM.PDP"
#=========================================================================#
# Device exceptions
#=========================================================================#
class DeviceTimeout( AbstractDeviceException ):
_dbus_error_name = "org.freesmartphone.GSM.Device.Timeout"
class DeviceNotPresent( AbstractDeviceException ):
_dbus_error_name = "org.freesmartphone.GSM.Device.NotPresent"
class DeviceFailed( AbstractDeviceException ):
_dbus_error_name = "org.freesmartphone.GSM.Device.Failed"
#=========================================================================#
# SIM exceptions
#=========================================================================#
class SimNotPresent( AbstractSimException ):
_dbus_error_name = "org.freesmartphone.GSM.SIM.NotPresent"
class SimAuthFailed( AbstractSimException ):
_dbus_error_name = "org.freesmartphone.GSM.SIM.AuthFailed"
class SimBlocked( AbstractSimException ):
_dbus_error_name = "org.freesmartphone.GSM.SIM.Blocked"
class SimNotFound( AbstractSimException ):
_dbus_error_name = "org.freesmartphone.GSM.SIM.NotFound"
class SimMemoryFull( AbstractSimException ):
_dbus_error_name = "org.freesmartphone.GSM.SIM.MemoryFull"
class SimInvalidIndex( AbstractSimException ):
_dbus_error_name = "org.freesmartphone.GSM.SIM.InvalidIndex"
class SimNotReady( AbstractSimException ):
_dbus_error_name = "org.freesmartphone.GSM.SIM.NotReady"
#=========================================================================#
# Network exceptions
#=========================================================================#
class NetworkNotPresent( AbstractNetworkException ):
_dbus_error_name = "org.freesmartphone.GSM.Network.NotPresent"
class NetworkUnauthorized( AbstractNetworkException ):
_dbus_error_name = "org.freesmartphone.GSM.Network.Unauthorized"
class NetworkNotSupported( AbstractNetworkException ):
_dbus_error_name = "org.freesmartphone.GSM.Network.NotSupported"
class NetworkNotFound( AbstractNetworkException ):
_dbus_error_name = "org.freesmartphone.GSM.Network.NotFound"
#=========================================================================#
# Call exceptions
#=========================================================================#
class CallNoCarrier( AbstractCallException ):
_dbus_error_name = "org.freesmartphone.GSM.Call.NoCarrier"
class CallNotFound( AbstractCallException ):
_dbus_error_name = "org.freesmartphone.GSM.Call.NotFound"
class CallNotAnEmergencyNumber( AbstractCallException ):
_dbus_error_name = "org.freesmartphone.GSM.Call.NotAnEmergencyNumber"
#=========================================================================#
# PDP exceptions
#=========================================================================#
class PdpNoCarrier( AbstractPdpException ):
_dbus_error_name = "org.freesmartphone.GSM.PDP.NoCarrier"
class PdpNotFound( AbstractPdpException ):
_dbus_error_name = "org.freesmartphone.GSM.PDP.NotFound"
class PdpUnauthrized( AbstractPdpException ):
_dbus_error_name = "org.freesmartphone.GSM.PDP.Unauthorized"
|