Example #1
0
 /// <summary>
 /// Handles the exception. Throws an exception based on the error.
 /// </summary>
 /// <param name="error">The error to check.</param>
 /// <param name="methodName">Method name</param>
 private void handleException(ASIOError error, String methodName)
 {
     if (error != ASIOError.ASE_OK && error != ASIOError.ASE_SUCCESS)
     {
         var asioException =
             new ASIOException(String.Format("Error code [{0}] while calling ASIO method <{1}>",
                                             ASIOException.getErrorName(error), methodName));
         asioException.Error = error;
         throw asioException;
     }
 }
Example #2
0
 /// <summary>
 /// Handles the exception. Throws an exception based on the error.
 /// </summary>
 /// <param name="error">The error to check.</param>
 /// <param name="methodName">Method name</param>
 // Token: 0x060006ED RID: 1773 RVA: 0x00015674 File Offset: 0x00013874
 private void handleException(ASIOError error, string methodName)
 {
     if (error != ASIOError.ASE_OK && error != ASIOError.ASE_SUCCESS)
     {
         throw new ASIOException(string.Format("Error code [{0}] while calling ASIO method <{1}>, {2}", ASIOException.getErrorName(error), methodName, this.getErrorMessage()))
               {
                   Error = error
               };
     }
 }