Example #1
0
        public static object  ErrorException(this string result)
        {
            JSON_Error errorInfo = JsonConvert.DeserializeObject <JSON_Error>(result, JSONhandler);

            throw new PushbulletException(errorInfo.error.message, errorInfo.error.code);
            return(null);
        }
Example #2
0
        public static void ShowError(string result)
        {
            JSON_Error errorInfo = JsonConvert.DeserializeObject <JSON_Error>(result, JSONhandler);

            throw new pCloudException(errorInfo._ErrorMessage, errorInfo._ERRORCODE);
        }
Example #3
0
        public static void ShowError(string result)
        {
            JSON_Error errorInfo = JsonConvert.DeserializeObject <JSON_Error>(result, JSONhandler);

            throw new PushbulletException(errorInfo.error.message, errorInfo.error.code);
        }
Example #4
0
        public static keep2shareException ShowError(string result)
        {
            JSON_Error errorInfo = JsonConvert.DeserializeObject <JSON_Error>(result, JSONhandler);

            throw new keep2shareException(errorInfo.ErrorMessage, 1002);
        }