/// </remarks>
/// <param name="argc">The Number of Arguments</param>
/// <param name="argv">The Arguments Array</param>
- /// <exception cref="ArgumentException">Thrown in case of Invalid Parameter</exception>
/// <exception cref="UnauthorizedAccessException">Thrown in case of Permission denied</exception>
/// <exception cref="NotSupportedException">Thrown in case of Not supported</exception>
/// <exception cref="InvalidOperationException">thrown in case of Operation failure</exception>
/// <param name="resultCount">Result text count</param>
/// <param name="msg">Engine message</param>
/// <param name="timeInfo">The time information</param>
- /// <exception cref="ArgumentException">Thrown in case of Invalid Parameter</exception>
/// <exception cref="UnauthorizedAccessException">Thrown in case of Permission denied</exception>
/// <exception cref="NotSupportedException">Thrown in case of Not supported</exception>
/// <exception cref="InvalidOperationException">thrown in case of Operation failure</exception>
/// </feature>
/// <param name="error">The Error Reason</param>
/// <param name="msg">The error message</param>
- /// <exception cref="ArgumentException">Thrown in case of Invalid Parameter</exception>
/// <exception cref="UnauthorizedAccessException">Thrown in case of Permission denied</exception>
/// <exception cref="NotSupportedException">Thrown in case of Not supported</exception>
- /// <exception cref="InvalidOperationException">thrown in case of Operation failure</exception>
+ /// <exception cref="InvalidOperationException">Thrown in case of Operation failure</exception>
/// <precondition>
/// Main function should be invoked before this function is called.
/// </precondition>
Log.Error(LogTag, "SendError Failed with error " + err);
throw ExceptionFactory.CreateException((ErrorCode)error);
}
-
}
/// <summary>
/// This API is invoked when Stt engine wants to notify the change of the speech status anytime. NOTE that this API can be invoked for recognizing the speech.
/// </remarks>
/// <param name="status">SpeechStatus</param>
- /// <exception cref="ArgumentException">Thrown in case of Invalid Parameter</exception>
/// <exception cref="UnauthorizedAccessException">Thrown in case of Permission denied</exception>
/// <exception cref="NotSupportedException">Thrown in case of Not supported</exception>
/// <exception cref="InvalidOperationException">thrown in case of Operation failure</exception>
/// </precondition>
public void SetPrivateDataSetDelegate(Action<string> callback)
{
+ if (null == callback)
+ {
+ Log.Error(LogTag, "callback is null");
+ throw ExceptionFactory.CreateException(ErrorCode.InvalidParameter);
+ }
+
_privateDatacallback = callback;
_privateDataSetCb = (string key, string data) =>
{
/// </precondition>
public void SetPrivateDataRequestedDelegate(OutAction<string> callback)
{
+ if (null == callback)
+ {
+ Log.Error(LogTag, "callback is null");
+ throw ExceptionFactory.CreateException(ErrorCode.InvalidParameter);
+ }
+
_privateDataRequestedCallback = callback;
_privateDataRequestedCb = (string key, out string data) =>
{
/// </remarks>
/// <param name="argc">The argument count(original)</param>
/// <param name="argv">The argument(original)</param>
- /// <exception cref="ArgumentException">Thrown in case of Invalid Parameter</exception>
/// <exception cref="NotSupportedException">Thrown in case of Not supported</exception>
/// <exception cref="InvalidOperationException">thrown in case of Operation failure</exception>
public void EngineMain(int argc, string[] argv)
/// </feature>
/// <param name="error">The error reason</param>
/// <param name="msg">The error message</param>
+ /// <exception cref="NotSupportedException">Thrown in case of Not supported</exception>
+ /// <exception cref="InvalidOperationException">thrown in case of Operation failure</exception>
/// <precondition>
/// EngineMain function should be invoked before this function is called.
/// </precondition>
/// 4. NotSupported
/// </param>
/// <exception cref="ArgumentException">Thrown in case of Invalid Parameter</exception>
- /// <exception cref="UnauthorizedAccessException">Thrown in case of Permission denied</exception>
/// <exception cref="NotSupportedException">Thrown in case of Not supported</exception>
/// <exception cref="InvalidOperationException">thrown in case of Operation failure</exception>
/// <precondition>
/// </precondition>
public void SetPrivateDataSetDelegate(Action<string> callback)
{
+ if (null == callback)
+ {
+ Log.Error(LogTag, "callback is null");
+ throw ExceptionFactory.CreateException(ErrorCode.InvalidParameter);
+ }
+
_privateDatacallback = callback;
_privateDataSetCb = (string key, string data) =>
{
/// 4. NotSupported
/// </param>
/// <exception cref="ArgumentException">Thrown in case of Invalid Parameter</exception>
- /// <exception cref="UnauthorizedAccessException">Thrown in case of Permission denied</exception>
/// <exception cref="NotSupportedException">Thrown in case of Not supported</exception>
/// <exception cref="InvalidOperationException">thrown in case of Operation failure</exception>
/// <precondition>
/// </precondition>
public void SetPrivateDataRequestedDelegate(OutAction<string> callback)
{
+ if (null == callback)
+ {
+ Log.Error(LogTag, "callback is null");
+ throw ExceptionFactory.CreateException(ErrorCode.InvalidParameter);
+ }
+
_privateDataRequestedCallback = callback;
_privateDataRequestedCb = (string key, out string data) =>
{