Tag:error

  • Kafka offset management

    Time:2019-12-10

    0. Offset management Offset is a long value, which only corresponds to a message. The consumer submits the offset to this special topic of the consumer offset. For specific group consumption, record which partition of this topic. The calculation formula is as follows: brokerId = Math.abs(groupId.hashCode()) % partitionCount //Partitioncount is the number of partitions of […]

  • TP5 try {} catch {} exception capture cannot be solved

    Time:2019-12-7

    Problem: TP5 uses the following method to catch the thrown exception Wrong way to write: try{ …… } catch (Exception $e) { echo $e->getMessage(); } The right way to write: try{ …… } catch (\Exception $e) { echo $e->getMessage(); }  

  • Record the process of troubleshooting the “basic connection closed: error in receiving” exception when using Httpwebrequest to send a request

    Time:2019-12-3

    Description: for an update program, mm test is required for the tester, which is normal before. When mm test is given after the update, an exception will be reported. System.net.webexception basic connection has been closed: an error occurred while receiving —– > system.io.ioexception: Unable to read data from transport connection: Software in your host has […]

  • Basic use and source code analysis of promisekit

    Time:2019-11-29

    Promise is an application framework that deals with a series of asynchronous operations. It can ensure that a series of asynchronous operations can be executed in sequence. When an error occurs, it can be handled by catching the error. Promise framework is also a good interpretation of Swift’s face-to-face protocol programming and functional programming There […]

  • DDMS files not found: xxx\hprof-conv.exe

    Time:2019-11-26

    The following error occurred: DDMS files not found: xxx\hprof-conv.exe The connection to adb is down, and a severe error has occured Please ensure that adb is correctly located at ‘D:\tools\android-sdk\platform-tools\adb.exe’ and can be executed. terms of settlement: In the Android SDK \ Tools Directoryhprof-conv.exeCopy to the sandroid SDK \ platform tools directory and restart eclipse

  • hook declined to update refs/heads/dev

    Time:2019-11-24

    When a project is submitted and pushed, an error is reported: warning: Large files detected. remote: error: File TaodangpuAuction/TaodangpuAuction/AuctionClasses/Discover/TXLiteAVSDK/TXLiteAVSDK_UGC.framework/TXLiteAVSDK_UGC is 120.68 MB; this exceeds file size limit of 100.0 MB remote: error: hook declined to update refs/heads/dev To https://gitee.com/doubleyao1116/JianHuo.git ! [remote rejected] dev -> dev (hook declined) error: failed to push some refs to ‘https://gitee.com/doubleyao1116/JianHuo.git’ […]

  • error handling

    Time:2019-11-14

    Introduction What kind of errors do you need to confirm to intercept (for example, KOA error or HTTP error)?? What are the error interception methods of this type [HTTP error interception, error judgment in error event and status code]?? What are the methods of JS active throw and intercept error [active throw: throw, reject(), intercept […]

  • Test of bracket matching

    Time:2019-11-13

    Header file #include #include typedef char Elem; typedef int status; #define MAXSIZE 100 #define ERROR 0 #define OK 1 typedef struct{ Elem data[MAXSIZE]; int top; }SqStack; // initialization void Initstack(SqStack &S) { if(!S.data) exit(-1); S.top = 0; } // stack status Push(SqStack &S,Elem e) { if(S.top==MAXSIZE) { Printf (“stack full \ n”); return ERROR; } […]

  • Mysql-5.. 6.23-win64.zip installation and configuration

    Time:2019-11-12

    MySQL is a small but powerful database, which is very popular at present. However, the installation package provided on the official website has two formats, one is MSI format and the other is ZIP format. Many people found that there was no setup.exe when decompressing in ZIP format. They were confused about a bunch of […]

  • A bug and a wrong design of ThinkPHP 3.2.3

    Time:2019-11-6

    ThinkPHP 3.2.3ajax_rerurnthisHookThere are logical mistakesHere is the source code: protected function ajaxReturn($data,$type=”,$json_option=0) { if(empty($type)) $type = C(‘DEFAULT_AJAX_RETURN’); switch (strtoupper($type)){ case ‘JSON’ : //Return JSON data format to client containing status information header(‘Content-Type:application/json; charset=utf-8’); exit(json_encode($data,$json_option)); case ‘XML’ : //Return data in XML format header(‘Content-Type:text/xml; charset=utf-8’); exit(xml_encode($data)); case ‘JSONP’: //Return JSON data format to client containing status […]

  • How does JavaScript work?

    Time:2019-11-6

    Abstract:Understand JS execution principle. Original: how does JavaScript work? Author: hengg Fundebug is reprinted by authorization, and the copyright belongs to the original author. What is JavaScript? Let’s confirm the definition of javascript: Javascript is an interpretive dynamic language. Interpretative languages exist relative to compiled languages. The source code is not directly compiled into the […]

  • Another use of [VB. Net tips] try… Catch… End try

    Time:2019-11-1

    Sometimes when a method is called, exception handling occurs. However, when there is an internal error in the method, it is unable to quickly locate which line of code has a problem.Here’s another use of try: Try…Catch ex As Exception When expressionHandle the exception when expression is true, otherwise throw the exception to the previous […]