1# Copyright (c) 2013 The Chromium OS Authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5# This module is meant to keep the Exceptions raised by the modules in the 6# wardmodem package together. Note that the modules can raise some system 7# defined Exceptions besides these user defined Exceptions. 8 9class WardModemRunTimeException(Exception): 10 """ 11 Exception that indicate failure when the wardmodem is executing 12 (accepting / responding to AT commands) should subclass from this. 13 14 """ 15 pass 16 17class WardModemSetupException(Exception): 18 """ 19 Exception raised during the setup of wardmodem before the actual AT 20 command sequence begins should raise this. 21 22 """ 23 pass 24 25 26# Exceptions thrown in the at_transceiver module. 27class ATTransceiverException(WardModemRunTimeException): 28 """ 29 Something went wrong in ATTranseiver while processing AT commands. 30 31 """ 32 pass 33 34# Exceptions raised in the state_machine module. 35class StateMachineException(WardModemRunTimeException): 36 """ 37 Something went wrong in StateMachine while processing commands. 38 39 """ 40 pass 41