Ejemplo n.º 1
0
        protected BittrexApiResult <T> ThrowErrorMessage <T>(BittrexError error, string extraInformation)
        {
            log.Write(LogVerbosity.Warning, $"Call failed: {error.ErrorMessage}");
            var result = (BittrexApiResult <T>)Activator.CreateInstance(typeof(BittrexApiResult <T>));

            result.Error = error;
            if (extraInformation != null)
            {
                result.Error.ErrorMessage += Environment.NewLine + extraInformation;
            }
            return(result);
        }
Ejemplo n.º 2
0
 protected BittrexApiResult <T> ThrowErrorMessage <T>(BittrexError error)
 {
     return(ThrowErrorMessage <T>(error, null));
 }