00001 #!/usr/bin/env python 00002 # -*- coding: utf-8 -*- 00003 00004 00005 class RospeexException(Exception): 00006 """ 00007 rospeex exception class 00008 00009 this exception class is base of rospeex exception classes. 00010 """ 00011 pass 00012 00013 00014 class ParameterException(RospeexException): 00015 """ 00016 Parameter exception class 00017 00018 this exception is used to notify parameter error. 00019 like None, parameter type, etc. 00020 """ 00021 pass 00022 00023 00024 class UnsupportedLanguageException(ParameterException): 00025 """ 00026 Unsupported Language Exception 00027 00028 this exception is used to notify language parameter error. 00029 """ 00030 pass 00031 00032 00033 class InvalidAudioDataException(ParameterException): 00034 """ 00035 Invalid Audio Data Exception 00036 00037 this exceptions is used to notify audio data parameter error. 00038 """ 00039 pass 00040 00041 00042 class SpeechSynthesisException(RospeexException): 00043 """ 00044 Speech Synthesis Exception 00045 00046 this exception occures in rospeex syntesis node. 00047 """ 00048 pass 00049 00050 00051 class SpeechRecognitionException(RospeexException): 00052 """ 00053 Speech Recognition Exception 00054 00055 this exception occures in rospeex recognition node. 00056 """ 00057 pass 00058 00059 00060 class SignalProcessingInterfaceException(RospeexException): 00061 """ 00062 Signal Processing Interface Exception 00063 00064 this exception occures in rospeex signal processing interface node. 00065 """ 00066 pass 00067 00068 00069 class NICTmmcvError(SignalProcessingInterfaceException, IOError): 00070 """ 00071 NICTmmcv Error class 00072 """ 00073 pass 00074 00075 00076 class ServerException(RospeexException): 00077 """ 00078 Server Exception 00079 00080 this exception is occured by server request / response. 00081 """ 00082 pass 00083 00084 00085 class InvalidRequestException(ServerException): 00086 """ 00087 Invalid Request Exception 00088 """ 00089 pass 00090 00091 00092 class InvalidResponseException(ServerException): 00093 """ 00094 Invalid Response Exception 00095 """ 00096 pass 00097 00098 00099 class RequestTimeoutException(ServerException): 00100 """ 00101 Server timeout exception 00102 """ 00103 pass 00104 00105 00106 class WebAudioMonitorException(SignalProcessingInterfaceException): 00107 """ 00108 WebAudioMonitor Exception class 00109 """ 00110 pass 00111 00112 00113 class InvalidDataHeaderException(SignalProcessingInterfaceException): 00114 """ 00115 Invalid Data Header Exception class 00116 """ 00117 pass